From b0c5b9a6880b9162df654048b2291b1fbc187cef Mon Sep 17 00:00:00 2001 From: Lokesh-Ramina Date: Mon, 8 Jan 2024 16:59:24 -0800 Subject: [PATCH] AP_Common: Forced Custom Firmware across all boards Added a new File AP_CarbonixCustom where AP_CUSTOM_FIRMWARE_STRING is added to be used across all board so we don,t need to metion it at all board hwdef or version files. SW-51 --- libraries/AP_Common/AP_CarbonixCustom.h | 5 +++++ libraries/AP_Common/AP_FWVersionDefine.h | 1 + 2 files changed, 6 insertions(+) create mode 100644 libraries/AP_Common/AP_CarbonixCustom.h diff --git a/libraries/AP_Common/AP_CarbonixCustom.h b/libraries/AP_Common/AP_CarbonixCustom.h new file mode 100644 index 0000000000..c771377664 --- /dev/null +++ b/libraries/AP_Common/AP_CarbonixCustom.h @@ -0,0 +1,5 @@ +#ifdef AP_CUSTOM_FIRMWARE_STRING +#undef AP_CUSTOM_FIRMWARE_STRING +#endif + +#define AP_CUSTOM_FIRMWARE_STRING "CarboPilot V5.0.0-beta3" diff --git a/libraries/AP_Common/AP_FWVersionDefine.h b/libraries/AP_Common/AP_FWVersionDefine.h index 481f1cbdcd..fa6a4a4ac8 100644 --- a/libraries/AP_Common/AP_FWVersionDefine.h +++ b/libraries/AP_Common/AP_FWVersionDefine.h @@ -22,6 +22,7 @@ #include #include +#include /* allow vendors to set AP_CUSTOM_FIRMWARE_STRING in hwdef.dat