From: Nathael Pajani Date: Fri, 24 Nov 2023 22:57:05 +0000 (+0100) Subject: Fix overvoltage detection for electrical test version X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=4b47747da81d425f652f6d1e36bb16c95b00b639;p=soft%2Flpc122x%2Fscialys Fix overvoltage detection for electrical test version --- 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--; }