peter-l5 / MicroPython_SCD4X

MicroPython driver for Sensirion SCD40 and SCD41. Derived from the Adafruit CircuitPython version
MIT License
6 stars 1 forks source link

Struct import is missing #6

Closed jbdesbas closed 4 months ago

jbdesbas commented 4 months ago

Hi,

Thanks for this very convenient lib.

Seems that import struct is missing. https://github.com/peter-l5/MicroPython_SCD4X/blob/67319de61aa65b35dcf72d1207cffcc1811dc94d/scd4x.py#L167

peter-l5 commented 4 months ago

Hi @jbdesbas, thanks for raising this issue. I have amended the scd4x.py code to import the struct module. The scd4x.py code seems to load OK after the change, please let me know if you encounter any further problems.

peter-l5 commented 4 months ago

closing issue