1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Shows MSP api version in cli

This commit is contained in:
Spencer Owen 2017-09-10 21:06:25 -06:00
parent aae4d143bf
commit 992403d2dd
2 changed files with 7 additions and 2 deletions

View file

@ -36,3 +36,5 @@ extern const char* const buildDate; // "MMM DD YYYY" MMM = Jan/Feb/...
#define BUILD_TIME_LENGTH 8 #define BUILD_TIME_LENGTH 8
extern const char* const buildTime; // "HH:MM:SS" extern const char* const buildTime; // "HH:MM:SS"
#define MSP_API_VERSION_STRING STR(API_VERSION_MAJOR) "." STR(API_VERSION_MINOR)

View file

@ -114,6 +114,8 @@ extern uint8_t __config_end;
#include "io/vtx_rtc6705.h" #include "io/vtx_rtc6705.h"
#include "io/vtx_control.h" #include "io/vtx_control.h"
#include "msp/msp_protocol.h"
#include "rx/rx.h" #include "rx/rx.h"
#include "rx/spektrum.h" #include "rx/spektrum.h"
#include "rx/frsky_d.h" #include "rx/frsky_d.h"
@ -3079,14 +3081,15 @@ static void cliVersion(char *cmdline)
{ {
UNUSED(cmdline); UNUSED(cmdline);
cliPrintLinef("# %s / %s (%s) %s %s / %s (%s)", cliPrintLinef("# %s / %s (%s) %s %s / %s (%s) MSP API: %s",
FC_FIRMWARE_NAME, FC_FIRMWARE_NAME,
targetName, targetName,
systemConfig()->boardIdentifier, systemConfig()->boardIdentifier,
FC_VERSION_STRING, FC_VERSION_STRING,
buildDate, buildDate,
buildTime, buildTime,
shortGitRevision shortGitRevision,
MSP_API_VERSION_STRING
); );
} }