1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Update WiThrottle.cpp

This commit is contained in:
Asbelos 2020-07-03 17:35:32 +01:00
parent 46d1f3e237
commit dc33acf7d4

View File

@ -1,3 +1,21 @@
/*
* © 2020, Chris Harlow. All rights reserved.
*
* This file is part of Asbelos DCC API
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* It is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CommandStation. If not, see <https://www.gnu.org/licenses/>.
*/
/*
* Truncated JMRI WiThrottle server implementation for DCC-EX command station
* Credit is due to Valerie Valley RR https://sites.google.com/site/valerievalleyrr/
@ -71,7 +89,7 @@ WiThrottle::~WiThrottle() {
void WiThrottle::parse(Print & stream, byte * cmd) {
heartBeat=millis();
DIAG(F("\nWiThrottle parse (%d) %s"),clientid, cmd);
DIAG(F("\nWiThrottle(%d) [%e]"),clientid, cmd);
switch (cmd[0]) {
case '*': // heartbeat control
@ -97,7 +115,7 @@ void WiThrottle::parse(Print & stream, byte * cmd) {
break;
case 'H': // hardware introduction....
break;
case 'Q': // hardware introduction....
case 'Q': //
DIAG(F("\nWiThrottle Quit"));
delete this;
break;