Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
MrD-RC committed Feb 2, 2024
1 parent cc84b0d commit bfb0e25
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/fc/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,6 @@ void ensureEEPROMContainsValidData(void)
*/
void saveConfigAndNotify(void)
{
#ifdef USE_OSD
osdStartedSaveProcess();
#endif
saveState = SAVESTATE_SAVEANDNOTIFY;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/fc/fc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bfb0e25

Please sign in to comment.