Embedded-Software-Projects

Log | Files | Refs | README | LICENSE

commit 08752f10b17cc021fdf597ebf1beea9d3e028f91
parent 3e4fb489ffa4bf9820dce9f7c571326b3488ff98
Author: William Lindholm <william_lindholm@outlook.com>
Date:   Mon, 14 Oct 2024 22:34:40 +0100

Fixed minor formatting issues.

Diffstat:
MProject1/.vs/Project1/v14/.atsuo | 0
MProject1/Project1/main.c | 6+++---
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Project1/.vs/Project1/v14/.atsuo b/Project1/.vs/Project1/v14/.atsuo Binary files differ. diff --git a/Project1/Project1/main.c b/Project1/Project1/main.c @@ -31,7 +31,7 @@ enum MODES SPLIT // Show Cylon animation (half display, 5 LED:s) & voltage reading (half display, 5 LED:s) }; -enum MODES DISPLAY_MODE = SPLIT; +enum MODES DISPLAY_MODE = CYLON; /************************************************************************/ @@ -199,7 +199,7 @@ void display_voltage() if (DISPLAY_MODE == SPLIT) { bot_led = SPLIT_LED + 1; // Start from SPLIT_LED - top_led = sizeof(LED_Array) / sizeof(LED_Array[0]) - 1; // Use LEDs from SPLIT_LED to the end + top_led = sizeof(LED_Array) / sizeof(LED_Array[0]) - 1; // Use LEDs from SPLIT_LED to the end } else { @@ -207,7 +207,7 @@ void display_voltage() top_led = sizeof(LED_Array) / sizeof(LED_Array[0]) - 1; } - uint8_t n_leds = top_led - bot_led + 1; // Number of LEDs used for voltage display + uint8_t n_leds = top_led - bot_led + 1; // Number of LEDs used for voltage display set_clr_leds_range(0, bot_led, top_led); // Clear only the LEDs used for voltage display