Prechádzať zdrojové kódy

Raise min length of pulses.

Much easier on the CPU of the Flipper, apparently without losing any
signal that makes sense. 18 samples are just 9 bits if Manchester
encoded. Almost any signal that makes sense is going to be longer. Yet
noise will hardly reach the 18 samples limit.
antirez 3 rokov pred
rodič
commit
8f63eb4316
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      signal.c

+ 3 - 3
signal.c

@@ -131,9 +131,9 @@ void scan_for_signal(ProtoViewApp *app) {
 
     /* Try to seek on data that looks to have a regular high low high low
      * pattern. */
-    uint32_t minlen = 13;           /* Min run of coherent samples. Up to
-                                       12 samples it's very easy to mistake
-                                       noise for signal. */
+    uint32_t minlen = 18;           /* Min run of coherent samples. With less
+                                       than a few samples it's very easy to
+                                       mistake noise for signal. */
 
     ProtoViewMsgInfo *info = malloc(sizeof(ProtoViewMsgInfo));
     uint32_t i = 0;