Fixed return type for DTMF_CheckGroupCall.

This commit is contained in:
Dual Tachyon 2023-09-28 16:35:19 +01:00
parent c070282b25
commit d43bbc1745
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ bool DTMF_CompareMessage(const char *pMsg, const char *pTemplate, uint8_t Size,
return true;
}
bool DTMF_CheckGroupCall(const char *pMsg, uint32_t Size)
DTMF_CallMode_t DTMF_CheckGroupCall(const char *pMsg, uint32_t Size)
{
uint32_t i;
@ -159,10 +159,10 @@ bool DTMF_CheckGroupCall(const char *pMsg, uint32_t Size)
}
}
if (i != Size) {
return true;
return DTMF_CALL_MODE_GROUP;
}
return false;
return DTMF_CALL_MODE_NOT_GROUP;
}
void DTMF_Append(char Code)

View File

@ -81,7 +81,7 @@ bool DTMF_GetContact(uint8_t Index, char *pContact);
bool DTMF_FindContact(const char *pContact, char *pResult);
char DTMF_GetCharacter(uint8_t Code);
bool DTMF_CompareMessage(const char *pDTMF, const char *pTemplate, uint8_t Size, bool bFlag);
bool DTMF_CheckGroupCall(const char *pDTMF, uint32_t Size);
DTMF_CallMode_t DTMF_CheckGroupCall(const char *pDTMF, uint32_t Size);
void DTMF_Append(char Code);
void DTMF_HandleRequest(void);
void DTMF_Reply(void);