AP_Periph: fix version setting in CheckFirmware app descriptor

This commit is contained in:
bugobliterator 2024-02-08 18:03:20 +11:00 committed by Andrew Tridgell
parent 5a4931b596
commit 7b6b6ae803
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#define FORCE_VERSION_H_INCLUDE
#include "AP_Periph.h"
#include "version.h"
#undef FORCE_VERSION_H_INCLUDE

View File

@ -5,14 +5,16 @@
#endif
#include "ap_version.h"
#include <AP_HAL/AP_HAL.h>
#define THISFIRMWARE "AP_Periph V1.7.0-dev"
// defines needed due to lack of GCS includes
#ifndef HAVE_ENUM_FIRMWARE_VERSION_TYPE
#define FIRMWARE_VERSION_TYPE_DEV 0
#define FIRMWARE_VERSION_TYPE_BETA 255
#define FIRMWARE_VERSION_TYPE_OFFICIAL 255
#endif
// the following line is parsed by the autotest scripts
#define FIRMWARE_VERSION 1,7,0,FIRMWARE_VERSION_TYPE_DEV
@ -23,3 +25,4 @@
#define FW_TYPE FIRMWARE_VERSION_TYPE_DEV
#include <AP_Common/AP_FWVersionDefine.h>
#include <AP_CheckFirmware/AP_CheckFirmwareDefine.h>