From 6edc2946db9758b4a77a72ad8818240f3a7ae096 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 12 Jun 2020 10:07:28 -0400 Subject: [PATCH] sx1509: Improve Python3 compatibility Signed-off-by: Kevin O'Connor --- klippy/extras/sx1509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):