mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 18:52:30 +00:00
Initial air quality telemetry feature
This commit is contained in:
@@ -218,6 +218,10 @@ void scanI2Cdevice()
|
||||
LOG_INFO("QMC5883L Highrate 3-Axis magnetic sensor found\n");
|
||||
nodeTelemetrySensorsMap[meshtastic_TelemetrySensorType_QMC5883L] = addr;
|
||||
}
|
||||
if (addr == PMSA0031_ADDR) {
|
||||
LOG_INFO("PMSA0031 air quality sensor found\n");
|
||||
nodeTelemetrySensorsMap[meshtastic_TelemetrySensorType_PMSA003I] = addr;
|
||||
}
|
||||
} else if (err == 4) {
|
||||
LOG_ERROR("Unknow error at address 0x%x\n", addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user