Compare commits

...

4 Commits

Author SHA1 Message Date
Siwat Sirichai cb6556b333 Merge branch 'main' into cud 2023-11-16 15:18:15 +07:00
Siwat Sirichai 47402e1c71 Update .gitignore 2023-11-16 15:12:10 +07:00
Siwat Sirichai 02eb63a54c Update .gitignore 2023-11-16 15:11:52 +07:00
Siwat Sirichai e124c73f67 fix failing build without climate module 2023-11-16 14:51:17 +07:00
2 changed files with 87 additions and 82 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@
.vscode/launch.json .vscode/launch.json
.vscode/ipch .vscode/ipch
.vs/ .vs/
.vscode/
.vscode/settings.json

View File

@ -453,7 +453,6 @@ void ota_begin()
} }
#endif #endif
void io_begin() void io_begin()
{ {
Serial.println("Initializing I/O . . ."); Serial.println("Initializing I/O . . .");
@ -591,12 +590,16 @@ void mqtt_callback(char *topic, byte *payload, unsigned int length)
else if ((!strncmp(topic_trim, "/pwm/", 5)) && !strncmp(topic_trim + 7, "/set/value", 10)) else if ((!strncmp(topic_trim, "/pwm/", 5)) && !strncmp(topic_trim + 7, "/set/value", 10))
{ {
pwm_value_callback(topic_trim, topic_length, payload_nt, length); pwm_value_callback(topic_trim, topic_length, payload_nt, length);
} else if(!strcmp(topic,STATE_REQUEST_TOPIC)) { }
else if (!strcmp(topic, STATE_REQUEST_TOPIC))
{
state_request_callback(); state_request_callback();
} }
else else
{ {
#ifdef ENABLE_CLIMATE_MODULE
ac_state_callback(topic, topic_length, payload_nt, length); ac_state_callback(topic, topic_length, payload_nt, length);
#endif
} }
user_mqtt_callback(topic, topic_length, payload_nt, length); user_mqtt_callback(topic, topic_length, payload_nt, length);
} }