tmc_uart: Don't try to configure analog pins to -1 value

Commit 6f5f2a3b incorrectly altered the analog mux pin config.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-10-26 11:33:30 -04:00
parent 081c24326d
commit 0ba5819370
1 changed files with 3 additions and 3 deletions

View File

@ -20,10 +20,10 @@ class MCU_analog_mux:
self.oids = [self.mcu.create_oid() for pp in select_pin_params]
self.pins = [pp['pin'] 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 in zip(self.oids, self.pins):
self.mcu.add_config_cmd("config_digital_out oid=%d pin=%s"
" value=%d default_value=0 max_duration=0"
% (oid, pin, value))
" value=0 default_value=0 max_duration=0"
% (oid, pin))
self.update_pin_cmd = None
self.mcu.register_config_callback(self.build_config)
def build_config(self):