Hard code a fuel level of nearly full
This commit is contained in:
parent
0a93b253b5
commit
cd9fc787fb
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ int hexagram_main_dash2can(int argc, char **argv) {
|
||||||
/* Fuel status */
|
/* Fuel status */
|
||||||
memset(frame.data, '\0', sizeof(frame.data));
|
memset(frame.data, '\0', sizeof(frame.data));
|
||||||
frame.can_id = 0x320;
|
frame.can_id = 0x320;
|
||||||
frame.data[2] = ((uint8_t)(packet.car.fuel / 15.0) & 0xff);
|
frame.data[2] = 0x0e;
|
||||||
|
|
||||||
if (hexagram_can_if_write(can_if, &frame) < 0) {
|
if (hexagram_can_if_write(can_if, &frame) < 0) {
|
||||||
goto error_io;
|
goto error_io;
|
||||||
|
|
Loading…
Add table
Reference in a new issue