From 6ffb5bb897aee443ff5eb9bbc075250449f13134 Mon Sep 17 00:00:00 2001 From: helgeerbe Date: Thu, 29 Jun 2023 13:02:38 +0200 Subject: [PATCH] fix: undefined pin is shown as -1 instead of 255 change pin type for onBattery pins from uint8_t to int8_t. Negativ pin values means not defined --- include/PinMapping.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/PinMapping.h b/include/PinMapping.h index d527d77d..a9c14926 100644 --- a/include/PinMapping.h +++ b/include/PinMapping.h @@ -38,16 +38,16 @@ struct PinMapping_t { uint8_t display_clk; uint8_t display_cs; uint8_t display_reset; - uint8_t victron_tx; - uint8_t victron_rx; - uint8_t battery_rx; - uint8_t battery_tx; - uint8_t huawei_miso; - uint8_t huawei_mosi; - uint8_t huawei_clk; - uint8_t huawei_irq; - uint8_t huawei_cs; - uint8_t huawei_power; + int8_t victron_tx; + int8_t victron_rx; + int8_t battery_rx; + int8_t battery_tx; + int8_t huawei_miso; + int8_t huawei_mosi; + int8_t huawei_clk; + int8_t huawei_irq; + int8_t huawei_cs; + int8_t huawei_power; int8_t led[PINMAPPING_LED_COUNT]; };