From 2ec769c66d1135962c01693bdaa804b79c845fad Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 23 Mar 2022 20:48:36 -0400 Subject: [PATCH] explicit error for forgotten NBC --- firmware/controllers/can/can_dash.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/controllers/can/can_dash.cpp b/firmware/controllers/can/can_dash.cpp index 1279106194..81157ed0f6 100644 --- a/firmware/controllers/can/can_dash.cpp +++ b/firmware/controllers/can/can_dash.cpp @@ -96,6 +96,8 @@ void updateDash(CanCycle cycle) { // Transmit dash data, if enabled switch (engineConfiguration->canNbcType) { + case CAN_BUS_NBC_NONE: + break; case CAN_BUS_NBC_BMW: canDashboardBMW(cycle); break;