mirror of
https://github.com/sigmasternchen/MH-Z-CO2-Sensors
synced 2025-03-15 06:38:55 +00:00
Make times unsigned long
to avoid overlow
on 16 bit architectures. Closes #10
This commit is contained in:
parent
4b438db79e
commit
af5c565990
1 changed files with 4 additions and 4 deletions
8
MHZ.cpp
8
MHZ.cpp
|
@ -8,11 +8,11 @@
|
|||
const int MHZ14A = 14;
|
||||
const int MHZ19B = 19;
|
||||
|
||||
const int MHZ14A_PREHEATING_TIME = 3 * 60 * 1000;
|
||||
const int MHZ19B_PREHEATING_TIME = 3 * 60 * 1000;
|
||||
const unsigned long MHZ14A_PREHEATING_TIME = 3 * 60 * 1000;
|
||||
const unsigned long MHZ19B_PREHEATING_TIME = 3 * 60 * 1000;
|
||||
|
||||
const int MHZ14A_RESPONSE_TIME = 60 * 1000;
|
||||
const int MHZ19B_RESPONSE_TIME = 120 * 1000;
|
||||
const unsigned long MHZ14A_RESPONSE_TIME = 60 * 1000;
|
||||
const unsigned long MHZ19B_RESPONSE_TIME = 120 * 1000;
|
||||
|
||||
const int STATUS_NO_RESPONSE = -2;
|
||||
const int STATUS_CHECKSUM_MISMATCH = -3;
|
||||
|
|
Loading…
Reference in a new issue