From 1f3982732da4ba90122954adc7cba040f77cdae2 Mon Sep 17 00:00:00 2001 From: Thomas Bellembois <18054222+tbellembois@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:10:58 +0100 Subject: [PATCH] Fix wrong right rpm on the OLED display. Fix #478 --- firmware/openbot/openbot.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/openbot/openbot.ino b/firmware/openbot/openbot.ino index a7e39d48c..f21b2b593 100644 --- a/firmware/openbot/openbot.ino +++ b/firmware/openbot/openbot.ino @@ -1619,7 +1619,7 @@ void display_vehicle_data() { #endif #if (HAS_SPEED_SENSORS_FRONT or HAS_SPEED_SENSORS_BACK or HAS_SPEED_SENSORS_MIDDLE) String left_rpm_str = String("Left RPM: ") + String(rpm_left, 0); - String right_rpm_str = String("Right RPM: ") + String(rpm_left, 0); + String right_rpm_str = String("Right RPM: ") + String(rpm_right, 0); #else String left_rpm_str = String("Left RPM: ") + String("N/A"); String right_rpm_str = String("Right RPM: ") + String("N/A"); @@ -1885,4 +1885,4 @@ void update_speed_rm() { counter_rm++; } } -#endif \ No newline at end of file +#endif