From 559d480abc383a73f7f7ae7df09610be3e8a7001 Mon Sep 17 00:00:00 2001 From: rehius <128579193+rehius@users.noreply.github.com> Date: Mon, 22 May 2023 10:28:40 +0000 Subject: [PATCH] Update misc.c --- misc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/misc.c b/misc.c index f32f1cd..2ed0fda 100644 --- a/misc.c +++ b/misc.c @@ -73,8 +73,11 @@ void halt_with_error(uint32_t err, uint32_t bits) pio_set_sm_mask_enabled(pio1, 0xF, false); set_sys_clock_khz(48000, true); vreg_set_voltage(VREG_VOLTAGE_0_95); - put_pixel(0); - sleep_ms(PAUSE_BEFORE); + if (bits != 1) + { + put_pixel(0); + sleep_ms(PAUSE_BEFORE); + } for(int j = 0; j < CODE_REPEATS; j++) { for(int i = 0; i < bits; i++) @@ -149,4 +152,4 @@ void reset_cpu() { gpio_deinit(PIN_RST); gpio_disable_pulls(PIN_RST); gpio_disable_input_output(PIN_RST); -} \ No newline at end of file +}