summaryrefslogtreecommitdiff
path: root/apps/plugins/pitch_detector.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r--apps/plugins/pitch_detector.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c
index b3003cd522..36e7059c1f 100644
--- a/apps/plugins/pitch_detector.c
+++ b/apps/plugins/pitch_detector.c
@@ -1143,7 +1143,11 @@ void init_everything(void)
1143 sample_rate = rb->rec_freq_sampr[sample_rate]; 1143 sample_rate = rb->rec_freq_sampr[sample_rate];
1144 rb->pcm_set_frequency(sample_rate | SAMPR_TYPE_REC); 1144 rb->pcm_set_frequency(sample_rate | SAMPR_TYPE_REC);
1145 rb->pcm_init_recording(); 1145 rb->pcm_init_recording();
1146 1146
1147 /* avoid divsion by zero */
1148 if(tuner_settings.lowest_freq == 0)
1149 tuner_settings.lowest_freq = period2freq(BUFFER_SIZE / 4);
1150
1147 /* GUI */ 1151 /* GUI */
1148#if LCD_DEPTH > 1 1152#if LCD_DEPTH > 1
1149 front_color = rb->lcd_get_foreground(); 1153 front_color = rb->lcd_get_foreground();