Skip to content

Commit

Permalink
Fix copy/past error.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvgalen committed Jan 25, 2025
1 parent 705a7b3 commit 1c70521
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Software/src/inverter/SOLAX-CAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ void update_values_can_inverter() { //This function maps all the values fetched
SOLAX_1801.data.u8[4] = 1;

//Ultra messages
SOLAX_187E.data.u8[0] = (uint8_t)datalayer.battery.info.reported_remaining_capacity_Wh;
SOLAX_187E.data.u8[1] = (datalayer.battery.info.reported_remaining_capacity_Wh >> 8);
SOLAX_187E.data.u8[2] = (datalayer.battery.info.reported_remaining_capacity_Wh >> 16);
SOLAX_187E.data.u8[3] = (datalayer.battery.info.reported_remaining_capacity_Wh >> 24);
SOLAX_187E.data.u8[0] = (uint8_t)datalayer.battery.status.reported_remaining_capacity_Wh;
SOLAX_187E.data.u8[1] = (datalayer.battery.status.reported_remaining_capacity_Wh >> 8);
SOLAX_187E.data.u8[2] = (datalayer.battery.status.reported_remaining_capacity_Wh >> 16);
SOLAX_187E.data.u8[3] = (datalayer.battery.status.reported_remaining_capacity_Wh >> 24);
SOLAX_187E.data.u8[5] = (uint8_t)(datalayer.battery.status.reported_soc / 100);
}

Expand Down

0 comments on commit 1c70521

Please sign in to comment.