diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-07-21 09:39:07 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-07-21 09:39:07 -0400 |
commit | 1fcfff2ac6ef1c2f7317184ca33ee2e3bc142970 (patch) | |
tree | 5c51de30bac82ce1d7e768be4e6c86bfa9ca6a43 /klippy | |
parent | 4d90b60fdb0a286878d157f6a513f777e3c7e7c4 (diff) | |
download | kutter-1fcfff2ac6ef1c2f7317184ca33ee2e3bc142970.tar.gz kutter-1fcfff2ac6ef1c2f7317184ca33ee2e3bc142970.tar.xz kutter-1fcfff2ac6ef1c2f7317184ca33ee2e3bc142970.zip |
tmc_uart: Remove references to the TMC2208 in the generic UART code
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/tmc_uart.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/klippy/extras/tmc_uart.py b/klippy/extras/tmc_uart.py index 6ca5e2e8..bf6a29cf 100644 --- a/klippy/extras/tmc_uart.py +++ b/klippy/extras/tmc_uart.py @@ -50,7 +50,7 @@ class MCU_analog_mux: ###################################################################### -# TMC2208 uart communication +# TMC uart communication ###################################################################### # Code for sending messages on a TMC uart @@ -116,18 +116,18 @@ class MCU_TMC_uart_bitbang: res.append((out >> (i*8)) & 0xff) return res def _encode_read(self, sync, addr, reg): - # Generate a tmc2208 read register message + # Generate a uart read register message msg = bytearray([sync, addr, reg]) msg.append(self._calc_crc8(msg)) return self._add_serial_bits(msg) def _encode_write(self, sync, addr, reg, val): - # Generate a tmc2208 write register message + # Generate a uart write register message msg = bytearray([sync, addr, reg, (val >> 24) & 0xff, (val >> 16) & 0xff, (val >> 8) & 0xff, val & 0xff]) msg.append(self._calc_crc8(msg)) return self._add_serial_bits(msg) def _decode_read(self, reg, data): - # Extract a tmc2208 read response message + # Extract a uart read response message if len(data) != 10: return None # Convert data into a long integer for easy manipulation @@ -205,7 +205,7 @@ class MCU_TMC_uart: if val is not None: return val raise self.printer.command_error( - "Unable to read tmc2208 '%s' register %s" % (self.name, reg_name)) + "Unable to read tmc uart '%s' register %s" % (self.name, reg_name)) def get_register(self, reg_name): with self.mutex: return self._do_get_register(reg_name) @@ -224,4 +224,4 @@ class MCU_TMC_uart: if self.ifcnt == (ifcnt + 1) & 0xff: return raise self.printer.command_error( - "Unable to write tmc2208 '%s' register %s" % (self.name, reg_name)) + "Unable to write tmc uart '%s' register %s" % (self.name, reg_name)) |