Przeglądaj źródła

Merge pull request #33 from jancoow/fix#26

Fixed issue #26
Janco Kock 9 lat temu
rodzic
commit
769e77c545
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      network.c

+ 1 - 0
network.c

@@ -113,6 +113,7 @@ void parseAlarmJson(char* content){
     r = jsmn_parse(&p, content, strlen(content), token, sizeof(token)/sizeof(token[0]));
     if (r < 0) {
         printf("Failed to parse JSON: %d \n", r);
+        return;
     }else{
         printf("Aantal tokens found: %d \n", r);
     }