소스 검색

Don't check senentence length less than MINMEA_MAX_SENTENCE_LENGTH in minmea_check

since the whole code base can support any length without problem

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I49184d41154dcc857d0ff630bcab5c62add165de
Xiang Xiao 3 년 전
부모
커밋
5cecc7a9ab
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      minmea.c

+ 0 - 4
minmea.c

@@ -46,10 +46,6 @@ bool minmea_check(const char *sentence, bool strict)
 {
     uint8_t checksum = 0x00;
 
-    // Sequence length is limited.
-    if (strlen(sentence) > MINMEA_MAX_SENTENCE_LENGTH + 3)
-        return false;
-
     // A valid sentence starts with "$".
     if (*sentence++ != '$')
         return false;