From 0e09a45cfd6ce22cb2708e9e42fe375fcf4b6091 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 19 Apr 2019 17:52:52 +0200 Subject: Fix tone detection --- src/common/includes/Audio/tone.h | 2 +- src/common/includes/Core/common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common/includes') diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h index 7de1c31..272fcb9 100644 --- a/src/common/includes/Audio/tone.h +++ b/src/common/includes/Audio/tone.h @@ -44,6 +44,6 @@ int tone_fax_status(void); void tone_do_analysis(void); /* Push a sample from the ADC ISR */ -void tone_detect_push_sample_from_irq(const int16_t sample); +void tone_detect_push_sample_from_irq(const uint16_t sample); #endif diff --git a/src/common/includes/Core/common.h b/src/common/includes/Core/common.h index 2dc0680..4918a5b 100644 --- a/src/common/includes/Core/common.h +++ b/src/common/includes/Core/common.h @@ -65,6 +65,7 @@ int random_bool(void); #define FAULT_SOURCE_ADC1 7 #define FAULT_SOURCE_TIM6_ISR 8 #define FAULT_SOURCE_ADC2_QUEUE 9 +#define FAULT_SOURCE_ADC2_IRQ 10 void trigger_fault(int source); int find_last_sunday(const struct tm*); -- cgit v1.2.3