Compare commits

...

2 Commits

Author SHA1 Message Date
Siwat Sirichai 31cfb252df Merge branch 'main' into cud 2023-10-04 13:47:32 +07:00
Siwat Sirichai 503700c5a5 Update espmega_iot_core.cpp 2023-10-04 13:47:24 +07:00
1 changed files with 6 additions and 6 deletions

View File

@ -752,9 +752,9 @@ void publish_env_state()
mqtt_client.loop();
if (lcd_current_page == 4)
{
Serial.printf("roomtemp.txt=\"%.01fC\"",current_room_temp);
Serial.printf("roomtemp.txt=\"%.01fC\"", current_room_temp);
lcd_send_stop_bit();
Serial.printf("roomhumid.txt=\"%d%\"",current_room_humid);
Serial.printf("roomhumid.txt=\"%d%%\"", (int)current_room_humid);
lcd_send_stop_bit();
}
break;
@ -819,10 +819,10 @@ void lcd_refresh()
}
break;
case 4:
Serial.printf("roomtemp.txt=\"%.01fC\"",current_room_temp);
lcd_send_stop_bit();
Serial.printf("roomhumid.txt=\"%.01f%\"",current_room_humid);
lcd_send_stop_bit();
Serial.printf("roomtemp.txt=\"%.01fC\"", current_room_temp);
lcd_send_stop_bit();
Serial.printf("roomhumid.txt=\"%d%%\"", (int)current_room_humid);
lcd_send_stop_bit();
if (ac_mode != 2)
panel.writeStr("temp.txt", String(ac_temperature) + "C");
else