From 69147c0d78910fb1ca2ac2527b087158bd74242f Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 24 May 2023 10:54:14 -0400 Subject: [PATCH] better code guard? --- firmware/console/binary/live_data.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/console/binary/live_data.cpp b/firmware/console/binary/live_data.cpp index 772c24c8e4..6d3865a224 100644 --- a/firmware/console/binary/live_data.cpp +++ b/firmware/console/binary/live_data.cpp @@ -168,7 +168,11 @@ const sent_state_s* getLiveData(size_t) { template<> const throttle_model_s* getLiveData(size_t) { +#if EFI_IDLE_CONTROL return &engine->module().unmock(); +#else + return nullptr; +#endif } static const FragmentEntry fragments[] = {