Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Mar 28, 2024
1 parent fa97aa0 commit 032da4b
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 @@ -235,7 +235,7 @@ void CAN1_RX0_IRQ_Handler(void) {
for (int i=0; i<8; i++) {
dat[i] = GET_BYTE(&CAN1->sFIFOMailBox[0], i);
}
rpm = dat[1] | (uint16_t)(dat[2] << 8); //Read RPM signal
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
#ifdef DEBUG_CAN
Expand Down

0 comments on commit 032da4b

Please sign in to comment.