From 9cff33a4140ad25ea97b9109884d889dc1e1cb14 Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Fri, 20 Oct 2023 13:30:52 -0400 Subject: [PATCH] compiles but will not link... --- MotorDriver.cpp | 2 +- MotorDriver.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MotorDriver.cpp b/MotorDriver.cpp index 8749471..f18050e 100644 --- a/MotorDriver.cpp +++ b/MotorDriver.cpp @@ -510,7 +510,7 @@ void MotorDriver::getFastPin(const FSH* type,int pin, bool input, FASTPIN & res #if defined(ARDUINO_GIGA) (void)type; (void)input; // no warnings please - *result = digitalPinToGpio(pin); + result = digitalPinToGpio(pin); #else (void) type; // avoid compiler warning if diag not used above. #if defined(ARDUINO_ARCH_SAMD) diff --git a/MotorDriver.h b/MotorDriver.h index 43acb30..12e44c5 100644 --- a/MotorDriver.h +++ b/MotorDriver.h @@ -31,6 +31,7 @@ enum TRACK_MODE : byte {TRACK_MODE_NONE = 1, TRACK_MODE_MAIN = 2, TRACK_MODE_PROG = 4, TRACK_MODE_DC = 8, TRACK_MODE_DCX = 16, TRACK_MODE_EXT = 32}; #ifdef ARDUINO_GIGA +extern gpio_t digitalPinToGpio(int P); #define setHIGH(fastpin) gpio_write(&fastpin, 1) #define setLOW(fastpin) gpio_write(&fastpin, 0) #else