mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Shows MSP api version in cli
This commit is contained in:
parent
aae4d143bf
commit
992403d2dd
2 changed files with 7 additions and 2 deletions
|
@ -36,3 +36,5 @@ extern const char* const buildDate; // "MMM DD YYYY" MMM = Jan/Feb/...
|
|||
|
||||
#define BUILD_TIME_LENGTH 8
|
||||
extern const char* const buildTime; // "HH:MM:SS"
|
||||
|
||||
#define MSP_API_VERSION_STRING STR(API_VERSION_MAJOR) "." STR(API_VERSION_MINOR)
|
|
@ -114,6 +114,8 @@ extern uint8_t __config_end;
|
|||
#include "io/vtx_rtc6705.h"
|
||||
#include "io/vtx_control.h"
|
||||
|
||||
#include "msp/msp_protocol.h"
|
||||
|
||||
#include "rx/rx.h"
|
||||
#include "rx/spektrum.h"
|
||||
#include "rx/frsky_d.h"
|
||||
|
@ -3079,14 +3081,15 @@ static void cliVersion(char *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,
|
||||
targetName,
|
||||
systemConfig()->boardIdentifier,
|
||||
FC_VERSION_STRING,
|
||||
buildDate,
|
||||
buildTime,
|
||||
shortGitRevision
|
||||
shortGitRevision,
|
||||
MSP_API_VERSION_STRING
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue