Remove cooldown check - this is not what we're looking for

This commit is contained in:
Pim van Pelt
2018-11-01 14:11:37 +01:00
parent 08453f3b5d
commit d673cda325
3 changed files with 1 additions and 7 deletions

View File

@ -176,7 +176,6 @@ bool channel_get(int idx) {
void channel_handler(int gpio, void *arg) {
uint8_t idx;
double now = mg_time();
bool state;
idx = channel_idx_by_gpio(gpio);
@ -185,11 +184,6 @@ void channel_handler(int gpio, void *arg) {
return;
}
if (now < s_channels[idx].button_last_change + CHANNEL_CHANGE_COOLDOWN_SECONDS) {
LOG(LL_INFO, ("GPIO %d is cooling down -- skipping", gpio));
return;
}
LOG(LL_INFO, ("GPIO %d triggered button %d", gpio, idx));
state = channel_get(idx);
channel_set(idx, !state);