mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +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
100e7e6eff
commit
68da99c4a0
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ void BydAttoBattery::transmit_can(unsigned long currentMillis) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counter_100ms > 3) {
|
if (counter_100ms > 3) {
|
||||||
if (BMS_voltage_available) { // Transmit battery voltage back to BMS when confirmed it's available, this closes the contactors
|
if (BMS_voltage_available) { // Transmit battery voltage back to BMS when confirmed it's available, this closes the contactors
|
||||||
ATTO_3_441.data.u8[4] = (uint8_t)(battery_voltage - 1);
|
ATTO_3_441.data.u8[4] = (uint8_t)(battery_voltage - 1);
|
||||||
ATTO_3_441.data.u8[5] = ((battery_voltage - 1) >> 8);
|
ATTO_3_441.data.u8[5] = ((battery_voltage - 1) >> 8);
|
||||||
ATTO_3_441.data.u8[6] = 0xFF;
|
ATTO_3_441.data.u8[6] = 0xFF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue