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

Fixed the display of lowercase characters in the git revision string in CMS.

This commit is contained in:
mikeller 2020-05-02 17:05:58 +12:00
parent b480103d42
commit a90147cefb
2 changed files with 4 additions and 6 deletions

View file

@ -22,6 +22,8 @@
// Firmware related menu contents and support functions
//
#include <ctype.h>
#include <stdbool.h>
#include "platform.h"
@ -191,11 +193,7 @@ static const void *cmsx_FirmwareInit(displayPort_t *pDisp)
unsigned 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] = toupper(shortGitRevision[i]);
}
infoGitRev[i] = 0x0; // Terminate string

View file

@ -19,7 +19,7 @@
*/
/*
* Replacemnet for system header file <ctype.h> to avoid macro definitions
* Replacement for system header file <ctype.h> to avoid macro definitions
* Functions are implemented in common/string_light.c
*/