diff --git a/klippy/extras/sx1509.py b/klippy/extras/sx1509.py index 27f335c9..a6c700fc 100644 --- a/klippy/extras/sx1509.py +++ b/klippy/extras/sx1509.py @@ -52,7 +52,7 @@ class SX1509(object): " clear_set_bits=%02x%02x" % ( self._oid, REG_MISC, 0, (1 << 4))) # Transfer all regs with their initial cached state - for _reg, _data in self.reg_dict.iteritems(): + for _reg, _data in self.reg_dict.items(): self._mcu.add_config_cmd("i2c_write oid=%d data=%02x%04x" % ( self._oid, _reg, _data), is_init=True) def setup_pin(self, pin_type, pin_params):