Hard code a fuel level of nearly full

This commit is contained in:
XANTRONIX Development 2023-12-21 23:08:05 -05:00
parent 0a93b253b5
commit cd9fc787fb

View file

@ -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;