tmc_uart: Make sure to set analog mux pins after a restart

Don't assume the analog mux pins are in a low state at startup.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-10-24 22:00:58 -04:00
parent d6d2be66e4
commit 6f5f2a3bc7
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class MCU_analog_mux:
for spd in select_pins_desc.split(',')] for spd in select_pins_desc.split(',')]
self.oids = [self.mcu.create_oid() for pp in select_pin_params] self.oids = [self.mcu.create_oid() for pp in select_pin_params]
self.pins = [pp['pin'] for pp in select_pin_params] self.pins = [pp['pin'] for pp in select_pin_params]
self.pin_values = tuple([0 for pp in select_pin_params]) self.pin_values = tuple([-1 for pp in select_pin_params])
for oid, pin, value in zip(self.oids, self.pins, self.pin_values): for oid, pin, value in zip(self.oids, self.pins, self.pin_values):
self.mcu.add_config_cmd("config_digital_out oid=%d pin=%s" self.mcu.add_config_cmd("config_digital_out oid=%d pin=%s"
" value=%d default_value=0 max_duration=0" " value=%d default_value=0 max_duration=0"