mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 07:15:18 +03:00
Fixed the display of lowercase characters in the git revision string in CMS.
This commit is contained in:
parent
b480103d42
commit
a90147cefb
2 changed files with 4 additions and 6 deletions
|
@ -22,6 +22,8 @@
|
||||||
// Firmware related menu contents and support functions
|
// Firmware related menu contents and support functions
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
@ -191,11 +193,7 @@ static const void *cmsx_FirmwareInit(displayPort_t *pDisp)
|
||||||
|
|
||||||
unsigned i;
|
unsigned i;
|
||||||
for (i = 0 ; i < GIT_SHORT_REVISION_LENGTH ; i++) {
|
for (i = 0 ; i < GIT_SHORT_REVISION_LENGTH ; i++) {
|
||||||
if (shortGitRevision[i] >= 'a' && shortGitRevision[i] <= 'f') {
|
infoGitRev[i] = toupper(shortGitRevision[i]);
|
||||||
infoGitRev[i] = shortGitRevision[i] - 'a' + 'A';
|
|
||||||
} else {
|
|
||||||
infoGitRev[i] = shortGitRevision[i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
infoGitRev[i] = 0x0; // Terminate string
|
infoGitRev[i] = 0x0; // Terminate string
|
||||||
|
|
|
@ -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
|
* Functions are implemented in common/string_light.c
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue