Skip to content

Commit

Permalink
Fix cell max volt mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dalathegreat committed Nov 20, 2023
1 parent 179b8ee commit d2c5810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Software/src/inverter/SOLAX-CAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void update_values_can_solax() { //This function maps all the values fetched fr

//BMS_PackTemps (strange name, since it has voltages?)
SOLAX_1876.data.u8[2] = (uint8_t)cell_max_voltage; //TODO: scaling OK?
SOLAX_1876.data.u8[3] = (cell_min_voltage >> 8);
SOLAX_1876.data.u8[3] = (cell_max_voltage >> 8);

SOLAX_1876.data.u8[6] = (uint8_t)cell_min_voltage; //TODO: scaling OK?
SOLAX_1876.data.u8[7] = (cell_min_voltage >> 8);
Expand Down

0 comments on commit d2c5810

Please sign in to comment.