Accurite sensor - minor bugfixes.
authorRoman Bazalevsky <rvb@rvb.name>
Mon, 8 Dec 2014 10:35:22 +0000 (13:35 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Mon, 8 Dec 2014 10:35:22 +0000 (13:35 +0300)
src/rtl_433.c

index ca0a4fee9538b3182e8fa2ab962fe2b31b9fbbd5..bee0e4d3824f92aa7ce2b4f82d5f4a0bcfd74da8 100755 (executable)
@@ -603,7 +603,9 @@ static int acurite5n1_callback(uint8_t bb[BITBUF_ROWS][BITBUF_COLS]) {
                 acurite_getTemp(buf[4], buf[5]));
             fprintf(stdout, ",HUMIDITY=%d\n", 
                 acurite_getHumidity(buf[6]));
                 acurite_getTemp(buf[4], buf[5]));
             fprintf(stdout, ",HUMIDITY=%d\n", 
                 acurite_getHumidity(buf[6]));
-        }
+        } else {
+            fprintf(stdout,",DATA=UNKNOWN");
+        } 
     }
     //if (debug_output)
     //   debug_callback(bb);
     }
     //if (debug_output)
     //   debug_callback(bb);