From d3de91d81edeb816259ab548ef8b2c2dd0a74dba Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Fri, 6 Jan 2023 13:03:50 +0300 Subject: [PATCH] Version 1.1 Fixed one minor bug. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3579299..15b8f63 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,7 +22,7 @@ String getValue(String data, char separator, byte index); void changeLedState(void); -const String firmware{"1.0"}; +const String firmware{"1.1"}; String espnowNetName{"DEFAULT"}; @@ -349,7 +349,7 @@ void sendConfigMessage() StaticJsonDocument json; json["name"] = deviceName; json["unit"] = 1; - json["type"] = getValueName(HACT_LIGHT); + json["type"] = HACT_LIGHT; json["class"] = ledType; char buffer[sizeof(esp_now_payload_data_t::message)]{0}; serializeJsonPretty(json, buffer);