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

Code cleanup, remove old code and debug artifacts

This commit is contained in:
jflyper 2018-12-04 23:03:44 +09:00
parent 06882b6a2c
commit 14bbc3ac07
4 changed files with 4 additions and 17 deletions

View file

@ -45,7 +45,7 @@ void systemReset(void)
void systemResetToBootloader(void)
{
persistentObjectWrite(PERSISTENT_OBJECT_BOOTLOADER_REQUEST, 0xDEADBEEF);
persistentObjectWrite(PERSISTENT_OBJECT_BOOTLOADER_REQUEST, BOOTLOADER_REQUEST_COOKIE);
__disable_irq();
NVIC_SystemReset();
}
@ -195,7 +195,7 @@ void checkForBootLoaderRequest(void)
persistentObjectWrite(PERSISTENT_OBJECT_BOOTLOADER_REQUEST, 0xCAFEFEED);
if (bootloaderRequest != 0xDEADBEEF) {
if (bootloaderRequest != BOOTLOADER_REQUEST_COOKIE) {
return;
}