From d6163ddb7d35107c624fb5b1700abd8ce20d8c22 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Mon, 26 Jun 2023 11:57:29 +0200 Subject: [PATCH] set default values for pin mappings if not provided (#275) --- src/PinMapping.cpp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/PinMapping.cpp b/src/PinMapping.cpp index deddd42f5..85b1fef68 100644 --- a/src/PinMapping.cpp +++ b/src/PinMapping.cpp @@ -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()