1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-11 13:21:01 +01:00

Cleaned out warnings

This commit is contained in:
Asbelos 2020-07-16 16:10:27 +01:00
parent 23088cda88
commit 0856164837
2 changed files with 2 additions and 4 deletions

View File

@ -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() {

View File

@ -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;
}