diff --git a/node1.c b/node1.c index 96c4479..4691fec 100644 --- a/node1.c +++ b/node1.c @@ -129,15 +129,10 @@ int main() { pms5003_init(&pms_config, uart1, 20, 21, 18, 19); struct repeating_timer timer_30; - // add_repeating_timer_ms(LOOP_INTERVAL_MS, cb_30, NULL, &timer_30); - absolute_time_t blink_time = make_timeout_time_ms(5000); - comms_led_blink(); + add_repeating_timer_ms(LOOP_INTERVAL_MS, cb_30, NULL, &timer_30); while (true) { - if(time_reached(blink_time)) { - comms_led_blink(); - blink_time = make_timeout_time_ms(5000); - } comms_led_update(); + sleep_us(100); tight_loop_contents(); } }