Skip to content

Commit

Permalink
fixed the missing restore of the name (#177)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian M <[email protected]>
  • Loading branch information
MobiFlight-Admin and DocMoebiuz authored May 1, 2022
1 parent 686a8ef commit 8960b3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ void OnGetConfig(void);
void OnGetInfo(void);
void OnGenNewSerial(void);
void OnSetName(void);
void restoreName(void);

// config.h
3 changes: 2 additions & 1 deletion src/mobiflight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ typedef struct {

lastUpdate_t lastUpdate;

void initPollIntervals(void)
void initPollIntervals(void)
{
// Init Time Gap between Inputs, do not read at the same loop
lastUpdate.Buttons = millis();
Expand Down Expand Up @@ -135,6 +135,7 @@ void ResetBoard()
{
generateSerial(false);
setLastCommandMillis();
restoreName();
loadConfig();
}

Expand Down

0 comments on commit 8960b3f

Please sign in to comment.