1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Add MSP_REBOOT_MSC_UTC reboot type to reboot into mass storage using UTC timestamps

The FAT filesystem is not timezone aware so timestamps are expected to be in the user's local time. However Linux implementations seem to expect the timestamps to be in UTC and then apply the user's computer timezone offset.

Adds an alternate reboot method used when the platform is "Linux" that prevents mass storage mode from adjusting the time to local time and instead uses UTC.
This commit is contained in:
Bruce Luckcuck 2018-12-17 20:48:11 -05:00
parent 510d35e934
commit 65169163b0
3 changed files with 15 additions and 4 deletions

View file

@ -70,7 +70,7 @@ TABS.setup.initialize = function (callback) {
$('a.rebootBootloader').click(function () {
var buffer = [];
buffer.push(1);
buffer.push(mspHelper.REBOOT_TYPES.BOOTLOADER);
MSP.send_message(MSPCodes.MSP_SET_REBOOT, buffer, false);
});
} else {