diff --git a/src/config.h b/src/config.h index cb70dd20..ba6d43e3 100644 --- a/src/config.h +++ b/src/config.h @@ -35,5 +35,6 @@ void OnGetConfig(void); void OnGetInfo(void); void OnGenNewSerial(void); void OnSetName(void); +void restoreName(void); // config.h \ No newline at end of file diff --git a/src/mobiflight.cpp b/src/mobiflight.cpp index 45352545..9516a527 100644 --- a/src/mobiflight.cpp +++ b/src/mobiflight.cpp @@ -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(); @@ -135,6 +135,7 @@ void ResetBoard() { generateSerial(false); setLastCommandMillis(); + restoreName(); loadConfig(); }