1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 17:55:30 +03:00

Spektrum, CMS over Telemetry. Rebased and squashed.

This commit is contained in:
Anders Hoglund 2017-11-14 15:57:33 +01:00
parent 971abbd9f6
commit 0e1f0e89e7
12 changed files with 457 additions and 78 deletions

View file

@ -53,20 +53,22 @@
// Info
static char infoGitRev[GIT_SHORT_REVISION_LENGTH];
static char infoGitRev[GIT_SHORT_REVISION_LENGTH + 1];
static char infoTargetName[] = __TARGET__;
#include "interface/msp_protocol.h" // XXX for FC identification... not available elsewhere
static long cmsx_InfoInit(void)
{
for (int i = 0 ; i < GIT_SHORT_REVISION_LENGTH ; i++) {
int i;
for ( i = 0 ; i < GIT_SHORT_REVISION_LENGTH ; i++) {
if (shortGitRevision[i] >= 'a' && shortGitRevision[i] <= 'f')
infoGitRev[i] = shortGitRevision[i] - 'a' + 'A';
else
infoGitRev[i] = shortGitRevision[i];
}
infoGitRev[i] = 0x0; // Terminate string
return 0;
}