press_t press;
if (!get_press_due_for_resend(pp, now, &press))
signal_error_by_blinking();
- uint32_t ago = now - press.timestamp;
+ u32_t ago = now - press.timestamp;
send_report_packet(press.seq, ago);
press.send_count++;
if (press.send_count < config_resend_count) {
switch (e.type) {
case NEW_BUTTON_PRESS: {
add_press(pp, &(press_t){e.buttonpress.timestamp, seq++, 0});
+ if (seq == 0)
+ new_epoch();
} break;
case RESEND_TIME: {
/* OK, we're awake. Cool. Thanks! (We actually do the sends in the