From 4b47747da81d425f652f6d1e36bb16c95b00b639 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Fri, 24 Nov 2023 23:57:05 +0100 Subject: [PATCH] Fix overvoltage detection for electrical test version --- tests_elec/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests_elec/main.c b/tests_elec/main.c index cdf3b49..1f649c3 100644 --- a/tests_elec/main.c +++ b/tests_elec/main.c @@ -322,7 +322,7 @@ void mode_update(void) temp_shutdown = (gpio_read(overtemperature_pin) ? 0 : 1); /* Update Over-Voltage information */ if (overvoltage > 0) { - uint8_t ov_tmp = (gpio_read(overvoltage_pin) ? 0 : 1); + uint8_t ov_tmp = (gpio_read(overvoltage_pin) ? 1 : 0); if (ov_tmp == 0) { overvoltage--; } -- 2.43.0