Fixed wrong shunt voltage reading
Some checks failed
Test compiling project / test (push) Failing after 2m24s
Some checks failed
Test compiling project / test (push) Failing after 2m24s
This commit is contained in:
@@ -33,6 +33,7 @@ void init_sensor(){
|
||||
ina_sensor.setShuntVoltageConversionTime(7);
|
||||
ina_sensor.setAverage(4);
|
||||
#else
|
||||
ina_sensor.reset();
|
||||
ina_sensor.setShuntVoltageConversionTime(conversion_time_8244uS);
|
||||
ina_sensor.setBusVoltageConversionTime(conversion_time_8244uS);
|
||||
ina_sensor.setAveragingMode(averages_128);
|
||||
@@ -44,7 +45,7 @@ void read_sensor_task(void* parameter)
|
||||
while (true) {
|
||||
// Get Values from sensor
|
||||
|
||||
String chip_id = ina_sensor.print_device_number();
|
||||
String chip_id = ina_sensor.get_device_model();
|
||||
LOG(DEBUG, "Chip Model: %s", chip_id.c_str());
|
||||
|
||||
float bus_voltage = ina_sensor.getBusVoltage();
|
||||
|
||||
Reference in New Issue
Block a user