Skip to content

Commit b36ebcd

Browse files
authored
Fix wrong right rpm on the OLED display. (#479)
Fix #478
1 parent 8f525c1 commit b36ebcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firmware/openbot/openbot.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ void display_vehicle_data() {
16191619
#endif
16201620
#if (HAS_SPEED_SENSORS_FRONT or HAS_SPEED_SENSORS_BACK or HAS_SPEED_SENSORS_MIDDLE)
16211621
String left_rpm_str = String("Left RPM: ") + String(rpm_left, 0);
1622-
String right_rpm_str = String("Right RPM: ") + String(rpm_left, 0);
1622+
String right_rpm_str = String("Right RPM: ") + String(rpm_right, 0);
16231623
#else
16241624
String left_rpm_str = String("Left RPM: ") + String("N/A");
16251625
String right_rpm_str = String("Right RPM: ") + String("N/A");
@@ -1885,4 +1885,4 @@ void update_speed_rm() {
18851885
counter_rm++;
18861886
}
18871887
}
1888-
#endif
1888+
#endif

0 commit comments

Comments
 (0)