1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 11:59:50 +03:00

Wismy/bt name fix (#6511)

Change bluetooth name to lowercase
This commit is contained in:
WismyYao 2019-06-17 04:58:13 -05:00 committed by Bertrand Songis
parent 76a21f9160
commit 196da35c6e
3 changed files with 14 additions and 8 deletions

View file

@ -44,6 +44,15 @@ char zchar2char(int8_t idx)
return ' ';
}
char char2lower(char c)
{
if(c >= 'A' && c <= 'Z'){
return c+32;
}
else
return c;
}
int8_t char2zchar(char c)
{
if (c == '_') return 37;