Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
5cecc7a9ab
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  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;