add AC State change callback
This commit is contained in:
parent
d301462298
commit
36a5af164e
|
@ -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);
|
IrSender.sendRaw(ir_code_fan[fan_speed], sizeof(ir_code_fan[fan_speed]) / sizeof(ir_code_fan[fan_speed][0]), NEC_KHZ);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
ac_changed_user_callback(mode, temperature, fan_speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
void publish_env_state()
|
void publish_env_state()
|
||||||
|
|
|
@ -81,3 +81,7 @@ void timer1_callback()
|
||||||
pwm_set_state(i, 1);
|
pwm_set_state(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ac_changed_user_callback(int mode, int temperature, int fan_speed) {
|
||||||
|
|
||||||
|
}
|
|
@ -21,6 +21,7 @@ void user_init();
|
||||||
void user_loop();
|
void user_loop();
|
||||||
void virtual_interrupt_user_callback(int pin, int state);
|
void virtual_interrupt_user_callback(int pin, int state);
|
||||||
void pwm_changed_user_callback(int pin);
|
void pwm_changed_user_callback(int pin);
|
||||||
|
void ac_changed_user_callback(int mode, int temperature, int fan_speed);
|
||||||
void timer_tick_callback();
|
void timer_tick_callback();
|
||||||
void timer1_callback();
|
void timer1_callback();
|
||||||
void bt0PopCallback(void *ptr);
|
void bt0PopCallback(void *ptr);
|
||||||
|
|
Loading…
Reference in New Issue