Skip to content

Commit

Permalink
Merge pull request #253 from J-A-A-M/fix_brightness
Browse files Browse the repository at this point in the history
Технічне: Фікс збереження денної та нічної яскравості
  • Loading branch information
v00g100skr authored Dec 28, 2024
2 parents 223b691 + 3fc4d75 commit fe73a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/src/JaamFirmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ bool saveDayBrightness(int newBrightness) {
if (settings.brightness_day == newBrightness) return false;
settings.brightness_day = newBrightness;
preferences.begin("storage", false);
preferences.putInt("brightness_day", settings.brightness_day);
preferences.putInt("brd", settings.brightness_day);
preferences.end();
reportSettingsChange("brightness_day", settings.brightness_day);
Serial.print("brightness_day commited to preferences");
Expand All @@ -1138,7 +1138,7 @@ bool saveNightBrightness(int newBrightness) {
if (settings.brightness_night == newBrightness) return false;
settings.brightness_night = newBrightness;
preferences.begin("storage", false);
preferences.putInt("brightness_night", settings.brightness_night);
preferences.putInt("brn", settings.brightness_night);
preferences.end();
reportSettingsChange("brightness_night", settings.brightness_night);
Serial.print("brightness_night commited to preferences");
Expand Down

0 comments on commit fe73a28

Please sign in to comment.