diff --git a/WiThrottle.cpp b/WiThrottle.cpp index 64cb2c1..d9b9ec7 100644 --- a/WiThrottle.cpp +++ b/WiThrottle.cpp @@ -262,7 +262,7 @@ void WiThrottle::locoAction(RingStream * stream, byte* aval, char throttleChar, switch (aval[0]) { case 'V': // Vspeed { - byte witSpeed=getInt(aval+1); + int witSpeed=getInt(aval+1); LOOPLOCOS(throttleChar, cab) { DCC::setThrottle(myLocos[loco].cab, WiTToDCCSpeed(witSpeed), DCC::getThrottleDirection(myLocos[loco].cab)); StringFormatter::send(stream,F("M%cA%c%d<;>V%d\n"), throttleChar, LorS(myLocos[loco].cab), myLocos[loco].cab, witSpeed);