From e3472b42274bab5faa2186e76a4ac35fa70aa91b Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 29 Jul 2020 02:23:11 -0700 Subject: [PATCH] scope --- firmware/controllers/can/can_dash.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/controllers/can/can_dash.cpp b/firmware/controllers/can/can_dash.cpp index fdb0b78d2c..6ac82efea8 100644 --- a/firmware/controllers/can/can_dash.cpp +++ b/firmware/controllers/can/can_dash.cpp @@ -182,11 +182,9 @@ void canDashboardVAG(void) { } void canDashboardW202(void) { - - uint16_t tmp; { CanTxMessage msg(W202_STAT_1); - tmp = GET_RPM(); + uint16_t tmp = GET_RPM(); msg[0] = 0x08; // Unknown msg[1] = (tmp >> 8); //RPM msg[2] = (tmp & 0xff); //RPM