Skip to content

Commit

Permalink
V0.53
Browse files Browse the repository at this point in the history
- fixes a bug when trying to set boolean settings. closes #62
  • Loading branch information
Blueforcer committed Apr 15, 2023
1 parent 7dfe0ed commit b5ae219
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/DisplayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,14 +1250,14 @@ void DisplayManager_::setNewSettings(const char *json)
TIME_PER_TRANSITION = doc.containsKey("TSPEED") ? doc["TSPEED"] : TIME_PER_TRANSITION;
MATRIX_FPS = doc.containsKey("FPS") ? doc["FPS"] : MATRIX_FPS;
BRIGHTNESS = doc.containsKey("BRI") ? doc["BRI"] : BRIGHTNESS;
START_ON_MONDAY = doc.containsKey("SOM") ? doc["SOM"] : START_ON_MONDAY;
START_ON_MONDAY = doc.containsKey("SOM") ? doc["SOM"].as<bool>() : START_ON_MONDAY;
TIME_FORMAT = doc.containsKey("TFORMAT") ? doc["TFORMAT"].as<String>() : TIME_FORMAT;
GAMMA = doc.containsKey("GAMMA") ? doc["GAMMA"].as<float>() : GAMMA;
DATE_FORMAT = doc.containsKey("DFORMAT") ? doc["DFORMAT"].as<String>() : DATE_FORMAT;
AUTO_BRIGHTNESS = doc.containsKey("ABRI") ? doc["ABRI"] : AUTO_BRIGHTNESS;
AUTO_TRANSITION = doc.containsKey("ATRANS") ? doc["ATRANS"] : AUTO_TRANSITION;
UPPERCASE_LETTERS = doc.containsKey("UPPERCASE") ? doc["UPPERCASE"] : UPPERCASE_LETTERS;
SHOW_WEEKDAY = doc.containsKey("WD") ? doc["WD"] : SHOW_WEEKDAY;
AUTO_BRIGHTNESS = doc.containsKey("ABRI") ? doc["ABRI"].as<bool>() : AUTO_BRIGHTNESS;
AUTO_TRANSITION = doc.containsKey("ATRANS") ? doc["ATRANS"].as<bool>() : AUTO_TRANSITION;
UPPERCASE_LETTERS = doc.containsKey("UPPERCASE") ? doc["UPPERCASE"].as<bool>() : UPPERCASE_LETTERS;
SHOW_WEEKDAY = doc.containsKey("WD") ? doc["WD"].as<bool>() : SHOW_WEEKDAY;
if (doc.containsKey("CCORRECTION"))
{
auto color = doc["CCORRECTION"];
Expand Down
2 changes: 1 addition & 1 deletion src/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ IPAddress gateway;
IPAddress subnet;
IPAddress primaryDNS;
IPAddress secondaryDNS;
const char *VERSION = "0.52";
const char *VERSION = "0.53";
String MQTT_HOST = "";
uint16_t MQTT_PORT = 1883;
String MQTT_USER;
Expand Down

0 comments on commit b5ae219

Please sign in to comment.