diff -r 434d60dc9b12 -r 039ab094f79b slotUI/freeslot.py --- a/slotUI/freeslot.py Sat Dec 17 18:58:35 2011 +0100 +++ b/slotUI/freeslot.py Sun Oct 28 10:41:39 2012 +0100 @@ -104,7 +104,7 @@ if (carid < 0) or (carid > 5): return "ERR - invalid carid" cmd = -1 - if command == "speed": + if command == "accel": cmd = 0 if command == "brake": cmd = 1 @@ -114,6 +114,8 @@ return "ERR - invalid command" if (value<0) or (value>15): return "ERR - invalid value" + if command == "accel" and value < 6: + return "ERR - value too low" # transform value 10..15 to A..F if (value>9): value = chr(ord("A") + (value-10))