tobiasschuerg / MH-Z-CO2-Sensors

Arduino imeplementation for CO2 sensors of the MH-Z series (Intelligent Infrared CO2 Module)
MIT License
77 stars 40 forks source link

added upper L for Arduino Uno to preheating time #17

Closed bodensee closed 3 years ago

bodensee commented 3 years ago

The literals for the preheating time are interpreted as int. On Arduino Uno an int is 2 bytes in size, ranging from -32,768 to 32,767. Therefore, the calculated number of 3601000=180000 does not fit in. Added upper L to force the literal to long.