Skip to content

Commit 6d0aee4

Browse files
committed
Device_Update: Release all buffers upon update failure
1 parent 92f26b5 commit 6d0aee4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Firmware/RTK_Everywhere/Device_Firmware_Update.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void deviceFirmwareClose(DEVICE_FIRMWARE_CTX * ctx, uint32_t currentMsec)
269269

270270
// Programming a device
271271
else
272-
deviceFirmwareStateSet(ctx, ctx->_reboot ? DFUS_REBOOT : DFUS_DONE);
272+
deviceFirmwareStateSet(ctx, ctx->_reboot ? DFUS_REBOOT : DFUS_NEXT_DEVICE);
273273
}
274274
}
275275

0 commit comments

Comments
 (0)