Improved contact check.

This commit is contained in:
Dual Tachyon 2023-09-12 11:41:39 +01:00
parent 480da04005
commit 73d568a5fc

View File

@ -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;
}