From 372f5e67903cb5fe73bc9ce69119aa84f1567493 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Thu, 7 Jul 2022 07:35:11 +0300 Subject: [PATCH] dead code? (#4325) * dead code? * dead code? * dead code? Co-authored-by: rusefillc --- firmware/console/binary/live_data.cpp | 2 ++ firmware/console/binary/tunerstudio.h | 15 +-------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/firmware/console/binary/live_data.cpp b/firmware/console/binary/live_data.cpp index 97443232ab..b0729ec43b 100644 --- a/firmware/console/binary/live_data.cpp +++ b/firmware/console/binary/live_data.cpp @@ -4,6 +4,8 @@ #include "tunerstudio.h" #include "wideband_state_generated.h" +#include "electronic_throttle_generated.h" +#include "knock_controller_generated.h" template<> const output_channels_s* getLiveDataAddr() { diff --git a/firmware/console/binary/tunerstudio.h b/firmware/console/binary/tunerstudio.h index c644615982..a7b1d65fe2 100644 --- a/firmware/console/binary/tunerstudio.h +++ b/firmware/console/binary/tunerstudio.h @@ -8,8 +8,6 @@ #pragma once #include "global.h" #include "tunerstudio_io.h" -#include "electronic_throttle_generated.h" -#include "knock_controller_generated.h" #include "FragmentEntry.h" typedef struct { @@ -44,18 +42,7 @@ void requestBurn(void); void startTunerStudioConnectivity(void); -#if defined __GNUC__ -// GCC -#define pre_packed -#define post_packed __attribute__((packed)) -#else -// IAR -#define pre_packed __packed -#define post_packed -#endif - -typedef pre_packed struct -post_packed { +typedef struct { short int offset; short int count; } TunerStudioWriteChunkRequest;