Skip to content

Commit

Permalink
fix: read the vehicle information mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AdonaiDiazEsparza committed Oct 21, 2024
1 parent 453a423 commit f301025
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Binary file modified Canbus_app/dist/canbus_app.fap
Binary file not shown.
Binary file modified Canbus_app/dist/debug/canbus_app_d.elf
Binary file not shown.
2 changes: 0 additions & 2 deletions Canbus_app/libraries/pid_library.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ bool pid_manual_request(
frame.buffer[1] = mode;
frame.buffer[2] = pid;

if(mode == CLEAR_STORAGE_DTC || mode == REQUEST_VEHICLE_INFORMATION) frame.buffer[2] = 0;

uint32_t time_delay = 0;

ret = send_can_frame(CAN, &frame);
Expand Down
4 changes: 2 additions & 2 deletions Canbus_app/scenes/Obd2MenuOption.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ void input_manual_pid(void* context) {

can_id = byte_values[3] | (byte_values[2] << 8) | (byte_values[1] << 16) |
(byte_values[0] << 24);

break;

case 1: // service
Expand Down Expand Up @@ -1101,7 +1100,8 @@ static int32_t obdii_thread_response_manual_sender_on_work(void* context) {
if(frame_received.canId == 0x00) break;
furi_string_cat_printf(
text,
"<- %lx %x %x %x %x %x %x %x %x\n",
"<-(%u) %lx %x %x %x %x %x %x %x %x\n",
i,
frame_received.canId,
frame_received.buffer[0],
frame_received.buffer[1],
Expand Down

0 comments on commit f301025

Please sign in to comment.