Skip to content

Commit

Permalink
Copter: Consolidate version number settings into a single definition
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Oct 28, 2024
1 parent a6f00a3 commit 28b2ebc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ArduCopter/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@

#include "ap_version.h"

#define THISFIRMWARE "ArduCopter V4.6.0-dev"

// the following line is parsed by the autotest scripts
#define FIRMWARE_VERSION 4,6,0,FIRMWARE_VERSION_TYPE_DEV

#define FW_MAJOR 4
#define FW_MINOR 6
#define FW_PATCH 0
#define FW_TYPE_STR "-dev"
#define FW_TYPE FIRMWARE_VERSION_TYPE_DEV

#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
#define THISFIRMWARE "ArduCopter V" TOSTRING(FW_MAJOR) "." TOSTRING(FW_MINOR) "." TOSTRING(FW_PATCH) FW_TYPE_STR

#include <AP_Common/AP_FWVersionDefine.h>
#include <AP_CheckFirmware/AP_CheckFirmwareDefine.h>

#undef STRINGIFY
#undef TOSTRING

// the following line is parsed by the autotest scripts
#define FIRMWARE_VERSION FW_MAJOR,FW_MINOR,FW_PATCH,FW_TYPE

0 comments on commit 28b2ebc

Please sign in to comment.