fix: forgot pulse condition
This commit is contained in:
parent
14f93e44ce
commit
d82a6219f0
2 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ handler_loop(struct mg_connection *c_mqtt)
|
|||
|
||||
if(is_on_schedule)
|
||||
{
|
||||
if(pulse_relay)
|
||||
if(pulse_relay && relay->pulse_timer)
|
||||
{
|
||||
is_on = 1;
|
||||
--relay->pulse_timer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue