mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Fix compilation issue
This commit is contained in:
parent
635f450e53
commit
c34bc58c8a
2 changed files with 5 additions and 7 deletions
|
@ -280,9 +280,8 @@ void send_can_battery() {
|
|||
}},
|
||||
.MsgID = 0x7e4,
|
||||
.data = {0x03, 0x19, 0x02, 0x8f, 0x00, 0x00, 0x00, 0x00}};
|
||||
err = transmit_can(&msg, can_config.battery);
|
||||
if (err == 0)
|
||||
state++;
|
||||
transmit_can(&msg, can_config.battery);
|
||||
state++;
|
||||
|
||||
break;
|
||||
case 1:
|
||||
|
@ -296,9 +295,8 @@ void send_can_battery() {
|
|||
}},
|
||||
.MsgID = 0x7e4,
|
||||
.data = {0x06, 0x19, 0x04, 0xc0, 0x64, 0x88, 0xff, 0x00}};
|
||||
err = transmit_can(&msg, can_config.battery);
|
||||
if (err == 0)
|
||||
state++;
|
||||
transmit_can(&msg, can_config.battery);
|
||||
state++;
|
||||
break;
|
||||
case 2:
|
||||
/* reset */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue