hbitter / DNMS

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

Replace i2c_state magic values by an enum. #42

Closed bertrik closed 3 years ago

bertrik commented 3 years ago

This change uses an enum for the i2c_state, instead of discrete "magical" numbers. The enum values are chosen to be identical to the previously used number. This makes it more clear what the numbers mean, the comments can be removed.