From ad0a9e38dddceefbf053c5327653897f231c0d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=BA=E6=A2=B0=E5=B0=8F=E9=B8=BD?= <128568434+jixiexiaoge@users.noreply.github.com> Date: Mon, 3 Mar 2025 12:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20carrot.cc=20carState?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/ui/carrot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/carrot.cc b/selfdrive/ui/carrot.cc index febc828..38781dd 100644 --- a/selfdrive/ui/carrot.cc +++ b/selfdrive/ui/carrot.cc @@ -2315,7 +2315,7 @@ public: dx += 150; ui_fill_rect(s->vg, { dx - 65, dy - 38, 130, 90 }, mode_color, 15, 2); ui_draw_text(s, dx, dy-5, "RPM", 25, COLOR_WHITE, BOLD); - sprintf(str, "%d", (int)car_state.getEngineRpm()); + sprintf(str, "%d", (int)carState.getEngineRpm()); ui_draw_text(s, dx, dy + 40, str, 40, COLOR_WHITE, BOLD); } }