Skip to content

Commit

Permalink
fix: undefined pin is shown as -1 instead of 255
Browse files Browse the repository at this point in the history
change pin type for onBattery pins from uint8_t to int8_t.  Negativ pin values means not defined
  • Loading branch information
helgeerbe committed Jun 29, 2023
1 parent 2223afa commit 6ffb5bb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions include/PinMapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};

Expand Down

0 comments on commit 6ffb5bb

Please sign in to comment.