소스 검색

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;