From cec20bdb4dba6ac48105508c25da95fb542d6360 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Fri, 12 Jul 2024 15:26:24 +0100 Subject: [PATCH] Correct function to work with analogWrite --- Utilities.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Utilities.h b/Utilities.h index b690404..58aff10 100644 --- a/Utilities.h +++ b/Utilities.h @@ -238,11 +238,11 @@ void led_indicate_error(int cycles) { bool forever = (cycles == 0) ? true : false; cycles = forever ? 1 : cycles; while(cycles > 0) { - digitalWrite(pin_led_rx, HIGH); - digitalWrite(pin_led_tx, LOW); + led_rx_on(); + led_tx_off(); delay(100); - digitalWrite(pin_led_rx, LOW); - digitalWrite(pin_led_tx, HIGH); + led_rx_off(); + led_tx_on(); delay(100); if (!forever) cycles--; }