[SYS] Catch preferences operation returns (#1646)

in the logs
This commit is contained in:
Florian authored and GitHub committed 2023-05-20 15:18:10 -05:00
1 parent aa63571537
commit 4b7b47c30c
4 files changed
+15 -12

No files matched your search

+2 -2
View File
@@ -207,9 +207,9 @@ void SSD1306Config_save() {
String conf = "";
serializeJson(jsonBuffer, conf);
preferences.begin(Gateway_Short_Name, false);
preferences.putString("SSD1306Config", conf);
int result = preferences.putString("SSD1306Config", conf);
preferences.end();
Log.notice(F("SSD1306 config saved" CR));
Log.notice(F("SSD1306 Config_save: %s, result: %d" CR), conf.c_str(), result);
}
void SSD1306Config_init() {