From fcff8e03484d0a8293e38a8a7de90e903206a5bd Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 4 Oct 2023 02:36:27 +0700 Subject: [PATCH] Update espmega_iot_core.cpp --- src/espmega_iot_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/espmega_iot_core.cpp b/src/espmega_iot_core.cpp index bdb2d77..5e99b26 100644 --- a/src/espmega_iot_core.cpp +++ b/src/espmega_iot_core.cpp @@ -500,7 +500,7 @@ void pwm_set_state(int id, int state) int pwm_value = pwm_values[id]; ESPMega_analogWrite(pwm_pins[id], state * (int)(pwm_linear_scaling_m[id] * pwm_value + pwm_linear_scaling_c[id])); if (lcd_current_page == 3) - panel.writeNum("j" + String(id) + ".pco", state ? 47829 : 12710); + panel.writeNum("j" + String(id) + ".ppic", pwm_states[id] ? 33 : 48); else if (lcd_current_page == 5 && id == lcd_pwmAdj_id) panel.writeStr("pwm_state.txt", pwm_states[lcd_pwmAdj_id] ? "ON" : "OFF"); publish_pwm_state(id);