peter-l5/MicroPython_SCD4X

Struct import is missing

Closed this issue · 2 comments

Hi,

Thanks for this very convenient lib.

Seems that import struct is missing.

correction = struct.unpack_from(">h", self._buffer[0:2])[0]

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.

closing issue