wb_editors
906
правок
Brainroot (обсуждение | вклад) |
Brainroot (обсуждение | вклад) (Выкинул else) |
||
Строка 86: | Строка 86: | ||
clearTimeout(motion_timer_1_id); | clearTimeout(motion_timer_1_id); | ||
} | } | ||
motion_timer_1_id = setTimeout(function () { | motion_timer_1_id = setTimeout(function () { | ||
dev["wb-gpio"]["Relay_1"] = false; | dev["wb-gpio"]["Relay_1"] = false; | ||
motion_timer_1_id = null; | motion_timer_1_id = null; | ||
}, motion_timer_1_timeout_ms); | }, motion_timer_1_timeout_ms); | ||
}, | }, | ||
}); | }); |