From bfb0e2519b7010440db45f857eefebef5c6365e4 Mon Sep 17 00:00:00 2001 From: Darren Lines Date: Fri, 2 Feb 2024 22:53:29 +0000 Subject: [PATCH] Update - Fix erroneous OSD message, which was showing false positives on the save - Increased the base save delay time, to test a theory that the multirotors may not be triggering the emergency rearm allowed quick enough --- src/main/fc/config.c | 3 --- src/main/fc/fc_core.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/fc/config.c b/src/main/fc/config.c index 1a545a98daa..e8bf17e6708 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -379,9 +379,6 @@ void ensureEEPROMContainsValidData(void) */ void saveConfigAndNotify(void) { -#ifdef USE_OSD - osdStartedSaveProcess(); -#endif saveState = SAVESTATE_SAVEANDNOTIFY; } diff --git a/src/main/fc/fc_core.c b/src/main/fc/fc_core.c index d9b42c345f3..21fb921dff4 100644 --- a/src/main/fc/fc_core.c +++ b/src/main/fc/fc_core.c @@ -901,7 +901,7 @@ void taskMainPidLoop(timeUs_t currentTimeUs) armTime = 0; // Delay saving for 0.5s to allow other functions to finish processing data to be stored on disarm - processDelayedSave((currentTimeUs - lastDisarmTimeUs > USECS_PER_SEC / 2)); + processDelayedSave((currentTimeUs - lastDisarmTimeUs > USECS_PER_SEC * 2));// / 2)); } if (armTime > 1 * USECS_PER_SEC) { // reset in flight emerg rearm flag 1 sec after arming once it's served its purpose