summaryrefslogtreecommitdiff
path: root/software/rda1846dongle/rda1846dongle.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/rda1846dongle/rda1846dongle.c')
-rw-r--r--software/rda1846dongle/rda1846dongle.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/software/rda1846dongle/rda1846dongle.c b/software/rda1846dongle/rda1846dongle.c
index d6f1b85..94f4b26 100644
--- a/software/rda1846dongle/rda1846dongle.c
+++ b/software/rda1846dongle/rda1846dongle.c
@@ -156,11 +156,13 @@ static void print_status(void)
static void print_dtmf(void)
{
- uint8_t idx1, idx2, code;
- if(rda1846_get_dtmf(&idx1, &idx2, &code))
+ uint8_t idx1, idx2, code, valid;
+ uint16_t raw = rda1846_get_dtmf(&idx1, &idx2, &code, &valid);
+ if(raw == 0xFFFF)
printf("DTMF: ERROR\r\n");
else
- printf("DTMF: tone1=%d, tone2=%d, code=0x%02X\r\n", idx1, idx2, code);
+ printf("DTMF: raw=0x%04X, tone1=%d, tone2=%d, code=0x%02X, valid=%d\r\n", raw, idx1, idx2, code, valid);
+ rda1846_clear_int();
}