we need to fix this build system it masks errors
This commit is contained in:
parent
3514c780d3
commit
44822df63d
|
@ -6,6 +6,7 @@ int main(int argc, char *argv[])
|
||||||
int fd, b;
|
int fd, b;
|
||||||
short sln[512] = {0};
|
short sln[512] = {0};
|
||||||
teletone_dtmf_detect_state_t dtmf_detect = {0};
|
teletone_dtmf_detect_state_t dtmf_detect = {0};
|
||||||
|
teletone_hit_type_t hit;
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
fprintf(stderr, "Arg Error!\n");
|
fprintf(stderr, "Arg Error!\n");
|
||||||
|
@ -25,7 +26,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
teletone_dtmf_detect(&dtmf_detect, sln, b / 2);
|
teletone_dtmf_detect(&dtmf_detect, sln, b / 2);
|
||||||
if ((hit = teletone_dtmf_get(&dtmf_detect, &digit_char, &dur))) {
|
if ((hit = teletone_dtmf_get(&dtmf_detect, &digit_char, &dur))) {
|
||||||
char *hs = NULL;
|
const char *hs = NULL;
|
||||||
|
|
||||||
|
|
||||||
switch(hit) {
|
switch(hit) {
|
||||||
|
@ -40,9 +41,11 @@ int main(int argc, char *argv[])
|
||||||
case TT_HIT_END:
|
case TT_HIT_END:
|
||||||
hs = "end";
|
hs = "end";
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s digit: %s\n", hs, digit_str);
|
printf("%s digit: %c\n", hs, digit_char);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
Loading…
Reference in New Issue