1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Additional fixes after feedback

This commit is contained in:
KiteAnton 2016-07-15 19:18:11 +02:00
parent 1ee8224706
commit 6c63aa78ca
2 changed files with 2 additions and 2 deletions

View file

@ -2502,7 +2502,7 @@ static void cliName(char *cmdline)
{
uint32_t len = strlen(cmdline);
if (*cmdline == 0) {
if (len == 0) {
cliPrintf("name %s\r\n", masterConfig.name);
} else if ('-' == cmdline[0]) {
memset(masterConfig.name, '\0', MAX_NAME_LENGTH);