1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Use zero instead of 0xCAFEFEED to indicate absence of boot loader request

This commit is contained in:
jflyper 2018-12-05 03:16:42 +09:00
parent 14bbc3ac07
commit e8c194e509

View file

@ -193,7 +193,7 @@ void checkForBootLoaderRequest(void)
{
uint32_t bootloaderRequest = persistentObjectRead(PERSISTENT_OBJECT_BOOTLOADER_REQUEST);
persistentObjectWrite(PERSISTENT_OBJECT_BOOTLOADER_REQUEST, 0xCAFEFEED);
persistentObjectWrite(PERSISTENT_OBJECT_BOOTLOADER_REQUEST, 0);
if (bootloaderRequest != BOOTLOADER_REQUEST_COOKIE) {
return;