Open scirelli opened 7 months ago
Looks like this happened when changing to F string format done in this PR: https://github.com/adafruit/Adafruit_CircuitPython_seesaw/pull/118/files
The previous format
syntax included {:x}
to format the result as hex. A similar format specifier is missing in the current library's f-string syntax.
It's a simple fix though:
>>> foo = 67
>>> f"0x{foo}"
'0x67'
>>> f"0x{foo:x}"
'0x43'
>>>
I can create a PR to fix it
Lines 161-164 In the raised error the message adds a
0x
to theself.chip_id
which is in decimal. In my case the error message readThe
67
decimal, which is0x43
in hex.