Adjust train speeds

This commit is contained in:
Tanner Collin 2024-09-04 00:10:03 -06:00
parent 1f0be77134
commit 8d6233c888

View File

@ -1483,14 +1483,14 @@ I will be terse in my responses.
res = '' res = ''
if button == 'r': if button == 'r':
res = mqtt_publish('train/control', -150) res = mqtt_publish('train/control', -140)
logging.info('Setting train speed to: -150') logging.info('Setting train speed to: -140')
elif button == 't': elif button == 't':
res = mqtt_publish('train/control', 0) res = mqtt_publish('train/control', 0)
logging.info('Setting train speed to: 0') logging.info('Setting train speed to: 0')
elif button == 'y': elif button == 'y':
res = mqtt_publish('train/control', 150) res = mqtt_publish('train/control', 160)
logging.info('Setting train speed to: 150') logging.info('Setting train speed to: 160')
elif button == 'b' or c == KEY_ESCAPE: elif button == 'b' or c == KEY_ESCAPE:
current_screen = 'home' current_screen = 'home'