13
0
Fork 1

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:
mazzoo 2009-02-14 19:49:26 +00:00
parent 63f2775ff0
commit 8311d7bb7b
1 changed files with 2 additions and 1 deletions

View File

@ -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 == ':')