update event names after implementing

This commit is contained in:
tyeth 2023-07-17 14:48:42 +01:00
parent f31b82e869
commit bebea468c9

View file

@ -51,7 +51,7 @@ public:
return isInit; return isInit;
} }
bool getEventeCO2(sensors_event_t *senseEvent) { bool getEventECO2(sensors_event_t *senseEvent) {
bool result = _sgp30->IAQmeasure(); bool result = _sgp30->IAQmeasure();
if (result) { if (result) {
senseEvent->eCO2 = _sgp30->eCO2; senseEvent->eCO2 = _sgp30->eCO2;
@ -59,7 +59,7 @@ public:
return result; return result;
} }
bool getEventtVOC(sensors_event_t *senseEvent) { bool getEventTVOC(sensors_event_t *senseEvent) {
bool result = _sgp30->IAQmeasure(); bool result = _sgp30->IAQmeasure();
if (result) { if (result) {
senseEvent->tvoc = _sgp30->TVOC; senseEvent->tvoc = _sgp30->TVOC;