Compare commits

...

2 Commits

Author SHA1 Message Date
Siwat Sirichai 39a08fadce Merge branch 'main' into cud 2023-10-02 18:03:40 +07:00
Siwat Sirichai 36a5af164e add AC State change callback 2023-10-02 18:02:17 +07:00
2 changed files with 4 additions and 2 deletions

View File

@ -726,6 +726,7 @@ void ac_set_state(int mode, int temperature, int fan_speed)
IrSender.sendRaw(ir_code_fan[fan_speed], sizeof(ir_code_fan[fan_speed]) / sizeof(ir_code_fan[fan_speed][0]), NEC_KHZ);
break;
}
ac_changed_user_callback(mode, temperature, fan_speed);
}
void publish_env_state()

View File

@ -47,6 +47,7 @@ void user_init();
void user_loop();
void virtual_interrupt_user_callback(int pin, int state);
void pwm_changed_user_callback(int pin);
void ac_changed_user_callback(int mode, int temperature, int fan_speed);
void timer_tick_callback();
void lt_btn_cb(void *comp);
void fan_btn_cb(void *comp);