melkati / CO2-Gadget

An advanced CO2 Monitor/Meter firmware for ESP32 with Android and iOS App for real time visualization and charting of air data, data logger, a variety of communication options (BLE, WIFI, MQTT, ESP-Now) and many supported sensors.
https://emariete.com/medidor-co2-gadget/
GNU General Public License v3.0
68 stars 14 forks source link

Duplicate definition batteryVoltageNow=0 #194

Closed Coscolin closed 8 months ago

Coscolin commented 8 months ago

batteryVoltageNow is defined twice, in line: https://github.com/melkati/CO2-Gadget/blob/d453c333f8b960fb195a7c3325119167b16ba4ba/CO2_Gadget_Battery.h#L70

and inside readBatteryVoltage() funcion: void readBatteryVoltage() { float batteryVoltageNow = 0;

melkati commented 8 months ago

Thank you. Fixed in development! It was an unused variable. Leftover code.