Skip to content

Commit

Permalink
set default values for pin mappings if not provided (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlimmchen authored Jun 26, 2023
1 parent 07bb0b0 commit d6163dd
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/PinMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,46 @@
#define CMT_SDIO -1
#endif

#ifndef VICTRON_PIN_TX
#define VICTRON_PIN_TX -1
#endif

#ifndef VICTRON_PIN_RX
#define VICTRON_PIN_RX -1
#endif

#ifndef PYLONTECH_PIN_RX
#define PYLONTECH_PIN_RX -1
#endif

#ifndef PYLONTECH_PIN_TX
#define PYLONTECH_PIN_TX -1
#endif

#ifndef HUAWEI_PIN_MISO
#define HUAWEI_PIN_MISO -1
#endif

#ifndef HUAWEI_PIN_MOSI
#define HUAWEI_PIN_MOSI -1
#endif

#ifndef HUAWEI_PIN_SCLK
#define HUAWEI_PIN_SCLK -1
#endif

#ifndef HUAWEI_PIN_CS
#define HUAWEI_PIN_CS -1
#endif

#ifndef HUAWEI_PIN_IRQ
#define HUAWEI_PIN_IRQ -1
#endif

#ifndef HUAWEI_PIN_POWER
#define HUAWEI_PIN_POWER -1
#endif

PinMappingClass PinMapping;

PinMappingClass::PinMappingClass()
Expand Down

0 comments on commit d6163dd

Please sign in to comment.