INA260 + INA219 sensor support (#1501)

* INA219 + INA260 support in telemetry

* Protobuf update

* Fixes + debug statement

* Fix size

* Fix conversion from mv

* Added getRegisterValue for i2cscan
This commit is contained in:
Ben Meadors
2022-06-11 16:44:56 -05:00
committed by GitHub
parent 3fd756900a
commit 90957e6994
17 changed files with 182 additions and 58 deletions

View File

@@ -11,11 +11,11 @@ BME280Sensor::BME280Sensor() :
}
int32_t BME280Sensor::runOnce() {
DEBUG_MSG("Init sensor: TelemetrySensorType_BME280\n");
DEBUG_MSG("Init sensor: %s\n", sensorName);
if (!hasSensor()) {
return DEFAULT_SENSOR_MINIMUM_WAIT_TIME_BETWEEN_READS;
}
status = bme280.begin(nodeTelemetrySensorsMap[TelemetrySensorType_BME280]);
status = bme280.begin(nodeTelemetrySensorsMap[sensorType]);
return initI2CSensor();
}