fix battery voltage and current

This commit is contained in:
Brett Christensen 2024-02-10 17:19:05 +11:00
parent 3a8dc638df
commit d3300f3dfa
2 changed files with 6 additions and 3 deletions

View file

@ -49,6 +49,8 @@ extern uint16_t cell_max_voltage; //mV, 0-4350
extern uint16_t cell_min_voltage; //mV, 0-4350
extern uint16_t cellvoltages[120]; //mV 0-4350 per cell
extern uint8_t nof_cellvoltages; // Total number of cell voltages, set by each battery.
extern uint16_t battery_voltage; //V+1, 0-500.0 (0-5000)
extern uint16_t battery_current; //A+1, Goes thru convert2unsignedint16 function (5.0A = 50, -5.0A = 65485)
extern const char* mqtt_user;
extern const char* mqtt_password;