mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
63711aee0b
commit
879d833511
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ void update_values_can_inverter() { //This function maps all the values fetched
|
|||
GROWATT_3110.data.u8[4] = (datalayer.battery.status.max_discharge_current_dA >> 8);
|
||||
GROWATT_3110.data.u8[5] = (datalayer.battery.status.max_discharge_current_dA & 0x00FF);
|
||||
//Status bits (see documentation for all bits, most important are mapped
|
||||
GROWATT_3110.data.u8[7] = 0x00; // Clear all bits
|
||||
GROWATT_3110.data.u8[7] = 0x00; // Clear all bits
|
||||
if (datalayer.battery.status.active_power_W < -1) { // Discharging
|
||||
GROWATT_3110.data.u8[7] = (GROWATT_3110.data.u8[7] | 0b00000011);
|
||||
} else if (datalayer.battery.status.active_power_W > 1) { // Charging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue