if (time_since_last_press >= config_minimum_seconds_between_button_presses) {
last_button_press_time = now;
event_t e;
if (time_since_last_press >= config_minimum_seconds_between_button_presses) {
last_button_press_time = now;
event_t e;
e.buttonpress.timestamp = now;
queue_try_add_ignoring_errors(&queue, &e);
}
e.buttonpress.timestamp = now;
queue_try_add_ignoring_errors(&queue, &e);
}
create_send(sleeping_sends, sleeps_heap, e.buttonpress.timestamp, seq++);
} break;
create_send(sleeping_sends, sleeps_heap, e.buttonpress.timestamp, seq++);
} break;
/* OK, we're awake. Cool. Thanks! (We actually do the sends in the
* service_sleeps() call at the top of the loop.) */
} break;
/* OK, we're awake. Cool. Thanks! (We actually do the sends in the
* service_sleeps() call at the top of the loop.) */
} break;