Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Apr 5, 2024
1 parent 032da4b commit 924fe66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/kombi/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void CAN1_RX0_IRQ_Handler(void) {
}
rpm = dat[2] | (uint16_t)(dat[1] << 8); //Read RPM signal
intermediary_rpm = (rpm/364) * 255; //Scale RPM signal for our purposes
scaled_rpm = intermediary_rpm/25; //Apply DBC scale factor for cluster
scaled_rpm = intermediary_rpm/25 + 12; //Apply DBC scale factor for cluster
#ifdef DEBUG_CAN
puts("Decoded RPM: ");
puth(rpm);
Expand Down

0 comments on commit 924fe66

Please sign in to comment.