diff --git a/platformio.ini b/platformio.ini index df89353..5bd4bbd 100755 --- a/platformio.ini +++ b/platformio.ini @@ -19,7 +19,7 @@ name = tsim default_envs = debug [common] -platform = espressif32@1.7.0 +platform = espressif32@3.5.0 board = esp32dev framework = arduino monitor_speed = 115200 @@ -36,7 +36,7 @@ lib_deps = ArduinoHttpClient @ 0.4.0 CRC32 @ 2.0.0 RTC @ 2.3.5 - MAX1704X @ 1.2.2 + MAX1704X @ 1.2.8 SparkFun BME280 @ 2.0.9 https://github.com/nikil511/TinyGSM.git StreamDebugger @ 1.0.1 @@ -44,6 +44,7 @@ lib_deps = sparkfun/SparkFun AS3935 Lightning Detector Arduino Library @ ^1.4.2 seeed-studio/Grove - Coulomb Counter for 3.3V to 5V LTC2941 @ 1.0.0 adafruit/Adafruit INA219 @ ^1.0.9 + Adafruit BusIO @ 1.4.0 [env:debug] @@ -87,4 +88,4 @@ build_flags = -D DEBUG=1 ${common.build_flags} lib_deps = - ${common.lib_deps} \ No newline at end of file + ${common.lib_deps} diff --git a/src/battery.cpp b/src/battery.cpp index 2a16093..37902fc 100644 --- a/src/battery.cpp +++ b/src/battery.cpp @@ -25,7 +25,7 @@ namespace Battery RetResult init() { // Configure ADC - analogSetCycles(ADC_CYCLES); + int analogSetCycles(ADC_CYCLES); pinMode(PIN_ADC_BAT, ANALOG); pinMode(PIN_ADC_SOLAR, ANALOG); @@ -346,4 +346,4 @@ namespace Battery break; } } -} \ No newline at end of file +}