Explorar el Código

Merge pull request #33 from jancoow/fix#26

Fixed issue #26
Janco Kock hace 9 años
padre
commit
769e77c545
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);
     }