1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 12:25:13 +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) { if (!truncated) {
// onwriteend will be fired again when truncation is finished // onwriteend will be fired again when truncation is finished
truncated = true; truncated = true;
writer.truncate(serialized_config_object.length); writer.truncate(blob.size);
return; return;
} }