automatically when plug in an USB stick. If you plug a USB after the device is powered on
you have to set the @LogCopyPath accordingly.
Use the @LogCopyProgress to show the overall progress when copy / move the log files to
an external memory. Connect this variable to a linear bargraph and you have a nice pro-
gress bar.
To copy and move files, we are using a sync write to avoid data loss, when the user un-plug
an external storage. This is more secure than a usual write, but is slower, too. The reason
why using sync write is simple: If the progress bar shows 100% you can be sure that the
write progress is nearly finished. Please wait for 2 seconds before unplugging the external
memory.
For a better usage we introduced two new variables: @LogCopyFinished and
@LogCopyError. The first variable goes to 1 when the internal copy / move process is
finally finished. You will see on the device that the progress bar shows 100% and the finish
variable will update somewhat later (< 1 second).
The second variable shows an error code. If everything is ok the Error Code is 0. The error
code table show the detailed codes.
Everything OK: