press_pile_t *pp = (press_pile_t *)xcalloc(1, sizeof(press_pile_t));
pp->presses = (queue_t *)xcalloc(config_resend_count, sizeof(queue_t));
pp->sleeps = (queue_t **)xcalloc(config_resend_count, sizeof(queue_t *));
- for (int i = 0; i < config_resend_count; i++) {
+ for (uint i = 0; i < config_resend_count; i++) {
const uint paranoid_safety_fudge = 10;
uint element_count = paranoid_safety_fudge + (1 << i);
element_count = MAX(element_count, config_minimum_queue_size);
}
void add_press(press_pile_t *pp, press_t *press) {
- int sc = press->send_count;
+ u16_t sc = press->send_count;
if (sc >= config_resend_count)
signal_error_by_blinking();
bool was_empty = queue_is_empty(&pp->presses[sc]);