diff --git a/max7301/max7301.py b/max7301/max7301.py index b1e1d55..ca1ffbf 100644 --- a/max7301/max7301.py +++ b/max7301/max7301.py @@ -46,7 +46,7 @@ def get_pin(self, pin): return value def _get_conf_register_for_pin(self, pin): - return (pin-4)/4 + 0x09 + return (pin-4)//4 + 0x09 def _get_value_register_for_pin(self, pin): return 0x20 + pin