]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
missed an =
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 17 Jun 2011 20:56:27 +0000 (15:56 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 17 Jun 2011 20:56:27 +0000 (15:56 -0500)
src/mod/applications/mod_spandsp/mod_spandsp_dsp.c

index f7387b9e8d42269db373e503c6b7c44188d48b70..75042c577e00e09de46748c4bb849244457878a5 100644 (file)
@@ -365,7 +365,7 @@ static switch_bool_t tone_detector_process_buffer(tone_detector_t *detector, voi
        detector->detected_tone = -1;
        super_tone_rx(detector->spandsp_detector, data, len);
 
-       if (detector->detected_tone > -1 && detector->detected_tone < detector->descriptor->idx && detector->detected_tone < MAX_TONES) {
+       if (detector->detected_tone > -1 && detector->detected_tone <= detector->descriptor->idx && detector->detected_tone < MAX_TONES) {
                *key = detector->descriptor->tone_keys[detector->detected_tone];
                return SWITCH_TRUE;
        }