mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(eeprom): eviter le deadlock inter-coeur lors de la sauvegarde Flash
This commit is contained in:
1 parent
254d7e5ce0
commit
22f354c06f
1 file changed
+1
-2
+1
-2
@@ -188,11 +188,10 @@ void sauvegarderConfiguration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rp2040.wdt_reset();
|
rp2040.wdt_reset();
|
||||||
rp2040.idleOtherCore();
|
// Note : EEPROM.commit() gère déjà automatiquement idleOtherCore() / resumeOtherCore()
|
||||||
memcpy(&cfgActuelle, (const void*)&configSysteme, sizeof(ConfigG29));
|
memcpy(&cfgActuelle, (const void*)&configSysteme, sizeof(ConfigG29));
|
||||||
EEPROM.put(0, cfgActuelle);
|
EEPROM.put(0, cfgActuelle);
|
||||||
EEPROM.commit();
|
EEPROM.commit();
|
||||||
rp2040.resumeOtherCore();
|
|
||||||
Serial.println(">> Configuration sauvegardée en mémoire Flash !");
|
Serial.println(">> Configuration sauvegardée en mémoire Flash !");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user