From b8fc76af69298646793ca799a7b4dd7d7d99e35c Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Sun, 22 Mar 2026 23:16:36 +0100 Subject: [PATCH] Updated custom_types.h with new magic header --- src/custom_types.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/custom_types.h b/src/custom_types.h index d0c887e..d91a6fb 100644 --- a/src/custom_types.h +++ b/src/custom_types.h @@ -1,9 +1,11 @@ #include + +#define CONFIG_MAGIC 0xBEEF typedef struct vehicle_config{ - uint16_t config_lock; - bool auto_detect_track; - uint8_t num_tracks; - uint8_t selected_track; + uint16_t magic = CONFIG_MAGIC; + bool auto_detect_track = true; + uint8_t num_tracks = 0; + uint8_t selected_track = 0; }; typedef struct track_data {