Skip to content

Commit

Permalink
Fix set time and date format over MQTT
Browse files Browse the repository at this point in the history
  • Loading branch information
bergdahl committed Dec 18, 2023
1 parent 5640e34 commit 892a8e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jbwoprmqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ void JBWoprMqttDevice::_handleConfigCommand(const std::string &subEntity,
const std::string &command,
const std::string &payload) {
if (command == COMMAND_SET) {
if (subEntity == SUBENTITY_NAME_DATE_FORMAT) {
if (subEntity == SUBENTITY_NAME_TIME_FORMAT) {
_config.timeFormat = payload;
_saveConfiguration();
} else if (subEntity == SUBENTITY_NAME_TIME_FORMAT) {
} else if (subEntity == SUBENTITY_NAME_DATE_FORMAT) {
_config.dateFormat = payload;
_saveConfiguration();
} else if (subEntity == SUBENTITY_NAME_DISPLAY_BRIGHTNESS) {
Expand Down

0 comments on commit 892a8e3

Please sign in to comment.