Restore all the contents of the specified flash from the corresponding save flash, the contents of which are created using the flashDiskBackup() function.
Syntax |
flashDiskRestore(string flash, uint @nackx, uint gid=0): bool |
---|---|
flash |
Name of the flash to be restored |
nackx |
Reference to any extended NACK code, in case of error |
gid |
Identifier of the graphical percentage element, if any, to be used, which can be created with the addGauge() function |
Result |
Returns logical outcome of operation |
Annotation:
•Restoring is supported only for flash of compact type that has been properly initialized and for which a save has already been made.
•Restoring also implies the irretrievable loss of all flash contents.
•The extended NACK code contains the actual NACK code in loWord(nackx) and any additional information in hiWord(nackx).