summaryrefslogtreecommitdiff
path: root/software/rda1846dongle/rda1846dongle.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-03-22 03:13:41 +0000
committerChristian Pointner <equinox@mur.at>2013-03-22 03:13:41 +0000
commitc0aac8acac1ee05d56f759283f81edcff762357d (patch)
tree141a320e27710a4842f89426d99bb3fb4f8819a1 /software/rda1846dongle/rda1846dongle.c
parentadded interface to switch between 2m and 70cm (diff)
added dtmf stuff (not working yet...)
git-svn-id: https://svn.spreadspace.org/mur.sat@706 7de4ea59-55d0-425e-a1af-a3118ea81d4c
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();
}