hbitter / DNMS

Digital Noise Measurement Sensor
https://hbitter.github.io/DNMS/
GNU General Public License v3.0
70 stars 23 forks source link

Use an enum for the I2C state instead of literal numbers. #46

Closed bertrik closed 2 years ago

bertrik commented 2 years ago

Hi, a small improvement for firmware V2.1.5, should not affect the binary produced. It makes the code a little more readable because it uses constant enum values are used for the i2c_state variable, instead of direct literal numbers.

hbitter commented 2 years ago

Hi Bertrik, thanks for your suggestion. Some like enums and some like literals. Regards, Helmut