This commit is contained in:
@@ -25,7 +25,7 @@ lib_deps =
|
||||
https://github.com/tobimai/elog.git#fix-syslog
|
||||
board_build.partitions = default.csv
|
||||
upload_protocol = espota
|
||||
upload_port = 10.1.10.8
|
||||
upload_port = 10.1.60.43
|
||||
build_flags = -Wall -Wextra -DLOGGING_SPIFFS_DISABLE -DLOGGING_SD_DISABLE
|
||||
|
||||
[env:ESP32_INA226]
|
||||
|
||||
@@ -44,9 +44,10 @@ void read_sensor_task(void* parameter)
|
||||
{
|
||||
while (true) {
|
||||
// Get Values from sensor
|
||||
|
||||
#ifndef USE_INA226
|
||||
String chip_id = ina_sensor.get_device_model();
|
||||
LOG(DEBUG, "Chip Model: %s", chip_id.c_str());
|
||||
#endif
|
||||
|
||||
float bus_voltage = ina_sensor.getBusVoltage();
|
||||
float shunt_voltage = ina_sensor.getShuntVoltage_mV() - zero_value;
|
||||
|
||||
Reference in New Issue
Block a user