Ver Fonte

Merge pull request #33 from jancoow/fix#26

Fixed issue #26
Janco Kock há 9 anos atrás
pai
commit
769e77c545
1 ficheiros alterados com 1 adições e 0 exclusões
  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);
     }