瀏覽代碼

Better raw view scale selection.

antirez 3 年之前
父節點
當前提交
715661cd9f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      signal.c

+ 3 - 1
signal.c

@@ -168,8 +168,10 @@ void scan_for_signal(ProtoViewApp *app) {
 
                 /* Adjust raw view scale if the signal has an high
                  * data rate. */
-                if (DetectedSamples->short_pulse_dur < 100)
+                if (DetectedSamples->short_pulse_dur < 75)
                     app->us_scale = 10;
+                else if (DetectedSamples->short_pulse_dur < 145)
+                    app->us_scale = 30;
             }
         }
         i += thislen ? thislen : 1;