mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-11 21:31:02 +01:00
Cleaned out warnings
This commit is contained in:
parent
23088cda88
commit
0856164837
@ -195,7 +195,6 @@ void WiThrottle::multithrottle(Print & stream, byte * cmd){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WiThrottle::locoAction(Print & stream, byte* aval, char throttleChar, int cab){
|
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.
|
// 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);
|
DIAG(F("\nLoco Action aval=%c%c throttleChar=%c, cab=%d"), aval[0],aval[1],throttleChar, cab);
|
||||||
switch (aval[0]) {
|
switch (aval[0]) {
|
||||||
@ -249,7 +248,6 @@ void WiThrottle::locoAction(Print & stream, byte* aval, char throttleChar, int c
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
DIAG(F("\ in %lms\n"),millis()-millisIn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiThrottle::loop() {
|
void WiThrottle::loop() {
|
||||||
|
@ -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
|
// StringFormatter::send(wifiStream, F("AT+CWHOSTNAME=\"%S\"\r\n"), hostname); // Set Host name for Wifi Client
|
||||||
// checkForOK(wifiStream,5000, OK_SEARCH, true);
|
// checkForOK(wifiStream,5000, OK_SEARCH, true);
|
||||||
|
(void) hostname; // not currently in use
|
||||||
|
|
||||||
StringFormatter::send(wifiStream,F("AT+CWJAP=\"%S\",\"%S\"\r\n"),SSid,password);
|
StringFormatter::send(wifiStream,F("AT+CWJAP=\"%S\",\"%S\"\r\n"),SSid,password);
|
||||||
if (!checkForOK(wifiStream,20000,OK_SEARCH,true)) return false;
|
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
|
// 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;
|
// if (!checkForOK(wifiStream,5000, OK_SEARCH, true)) return false;
|
||||||
|
(void)servername; // not currently in use
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user