google / cyanobyte

Machine-readable datasheets
https://cyanobyte.dev
Apache License 2.0
79 stars 31 forks source link

I2cdevice ast issue #232

Closed osterwood closed 4 years ago

osterwood commented 4 years ago

Two tests had the same function name, so only the later one was run (comparing the micropython template). This patch:

Also, the files generated by the i2c-device template are not valid python, if BitFields are used. The needs to be a comma between the BitField entries.

Fleker commented 4 years ago

Ah that was a small mistake, thanks for catching!