1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 20:35:19 +03:00

more robust approach

This commit is contained in:
cTn 2014-02-22 21:43:17 +01:00
parent 7d4e7f8310
commit 0339f87d86

View file

@ -75,7 +75,7 @@ function configuration_backup() {
if (!truncated) {
// onwriteend will be fired again when truncation is finished
truncated = true;
writer.truncate(serialized_config_object.length);
writer.truncate(blob.size);
return;
}