forked from mirror/uv-k5-firmware
Improved contact check.
This commit is contained in:
parent
480da04005
commit
73d568a5fc
@ -76,7 +76,7 @@ bool DTMF_ValidateCodes(char *pCode, uint8_t Size)
|
||||
bool DTMF_GetContact(uint8_t Index, char *pContact)
|
||||
{
|
||||
EEPROM_ReadBuffer(0x1C00 + (Index * 0x10), pContact, 16);
|
||||
if ((pContact[0] - ' ') >= 0x5F) {
|
||||
if (pContact[0] < ' ' || pContact[0] > 0x7E) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user