From ac4d80f2d6e50c3e447b0c7a76c5ba33d34a701d Mon Sep 17 00:00:00 2001 From: Travis Shears Date: Wed, 30 Apr 2025 13:40:49 +0200 Subject: [PATCH] get comms led running smoothly --- node1.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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(); } }