From 0856164837795588e572dbb16172cb14f2a9ccf2 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Thu, 16 Jul 2020 16:10:27 +0100 Subject: [PATCH] Cleaned out warnings --- WiThrottle.cpp | 2 -- WifiInterface.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/WiThrottle.cpp b/WiThrottle.cpp index c4d7f46..4ad818a 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -195,7 +195,6 @@ void WiThrottle::multithrottle(Print & stream, byte * cmd){ } void WiThrottle::locoAction(Print & stream, byte* aval, char throttleChar, int cab){ - unsigned long millisIn=millis(); // Note cab=-1 for all cabs in the consist called throttleChar. DIAG(F("\nLoco Action aval=%c%c throttleChar=%c, cab=%d"), aval[0],aval[1],throttleChar, cab); switch (aval[0]) { @@ -249,7 +248,6 @@ void WiThrottle::locoAction(Print & stream, byte* aval, char throttleChar, int c } break; } - DIAG(F("\ in %lms\n"),millis()-millisIn); } void WiThrottle::loop() { diff --git a/WifiInterface.cpp b/WifiInterface.cpp index 89c446d..79b3fb8 100644 --- a/WifiInterface.cpp +++ b/WifiInterface.cpp @@ -61,7 +61,7 @@ bool WifiInterface::setup2(Stream & wifiStream, const __FlashStringHelper* SSid, // StringFormatter::send(wifiStream, F("AT+CWHOSTNAME=\"%S\"\r\n"), hostname); // Set Host name for Wifi Client // checkForOK(wifiStream,5000, OK_SEARCH, true); - + (void) hostname; // not currently in use StringFormatter::send(wifiStream,F("AT+CWJAP=\"%S\",\"%S\"\r\n"),SSid,password); if (!checkForOK(wifiStream,20000,OK_SEARCH,true)) return false; @@ -78,7 +78,7 @@ bool WifiInterface::setup2(Stream & wifiStream, const __FlashStringHelper* SSid, // StringFormatter::send(wifiStream, F("AT+MDNS=1,\"%S.local\",\"%S.local\",%d\r\n"), hostname, servername, port); // Setup mDNS for Server // if (!checkForOK(wifiStream,5000, OK_SEARCH, true)) return false; - + (void)servername; // not currently in use return true; }