2025-11-2012

This commit is contained in:
2025-11-20 22:51:04 +01:00
parent 2868166136
commit 9724df8396
3 changed files with 49 additions and 73 deletions

View File

@@ -24,11 +24,13 @@ HardwareSerial Co2Port(1); // use UART2
#define CO2_WARN_5 2000
#define CO2_CRITICAL_PPM 1850
int CO2Wert = -99;
//int CO2Wert = -99;
char antwort[100] = {0xFF};
int range =2000;
bool readCo2Flag = true;
char getCheckSum(char *packet)
{
char i, checksum;
@@ -94,7 +96,7 @@ void setRange()
void beginC02()
{
Co2Port.begin(9600, SERIAL_8N1, 32, 33);
readCo2Flag = false;
//readCo2Flag = false;
delay(100);
calibrationCo2();
delay(100);