pub fn convert(backup: &[u8], target: &[u8]) -> Result<Vec<u8>, String>Expand description
Converts backup so it can be written onto the controller whose current
image is target: the same series and SDK give the backup back as it is;
otherwise every file of the backup is repacked in the target’s layout
(one shared volume on the 800 series, application and protocol volumes on
the 700 series) with the target’s application version and RF
configuration, and the protocol files as the backup has them, which the
target’s firmware migrates to its own format on start. Refused when the
backup’s protocol format is newer than the target’s SDK reads, or when
either image’s format cannot be told.