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:
parent
14bbc3ac07
commit
e8c194e509
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ void checkForBootLoaderRequest(void)
|
||||||
{
|
{
|
||||||
uint32_t bootloaderRequest = persistentObjectRead(PERSISTENT_OBJECT_BOOTLOADER_REQUEST);
|
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) {
|
if (bootloaderRequest != BOOTLOADER_REQUEST_COOKIE) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue