From 8197e2bffa7f0d9d813d0cafc015dcfd5764e98d Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 12 Apr 2021 09:18:48 +0100 Subject: [PATCH] Teensy/nanoEvery compiler warnings No functional change, just avoiding compiler warnings for un used parameters in some architectures. --- DCCTimer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/DCCTimer.cpp b/DCCTimer.cpp index 1d3e6ac..727caa1 100644 --- a/DCCTimer.cpp +++ b/DCCTimer.cpp @@ -72,10 +72,13 @@ INTERRUPT_CALLBACK interruptHandler=0; } bool DCCTimer::isPWMPin(byte pin) { + (void) pin; return false; // TODO what are the relevant pins? } void DCCTimer::setPWM(byte pin, bool high) { + (void) pin; + (void) high; // TODO what are the relevant pins? } @@ -97,12 +100,15 @@ INTERRUPT_CALLBACK interruptHandler=0; bool DCCTimer::isPWMPin(byte pin) { //Teensy: digitalPinHasPWM, todo + (void) pin; return false; // TODO what are the relevant pins? } void DCCTimer::setPWM(byte pin, bool high) { // TODO what are the relevant pins? - } + (void) pin; + (void) high; +} void DCCTimer::getSimulatedMacAddress(byte mac[6]) { #if defined(__IMXRT1062__) //Teensy 4.0 and Teensy 4.1