dect_cli: fix a bug in parse_rfpi() that I introduced to houz' "name" command.
git-svn-id: https://dedected.org/svn/trunk@74 8d8ab74c-27aa-4a3d-9bde-523a2bc1f624
This commit is contained in:
parent
63f2775ff0
commit
8311d7bb7b
|
@ -292,11 +292,12 @@ int parse_rfpi(const char * str_rfpi, uint8_t * rfpi)
|
|||
return -1;
|
||||
rfpi[i] = (highnibble << 4) | lownibble;
|
||||
|
||||
read += 2;
|
||||
|
||||
if (i == 4)
|
||||
break;
|
||||
i++;
|
||||
str_rfpi += 2;
|
||||
read += 2;
|
||||
|
||||
// Accept space or colon as byte separator. None at all is ok too.
|
||||
if (*str_rfpi == ' ' || *str_rfpi == ':')
|
||||
|
|
Loading…
Reference in New Issue