forked from cellular-infrastructure/osmocom-analog
common code: Minor fix in main loop
This commit is contained in:
parent
f87e36fa47
commit
b45b0c6bac
|
@ -316,21 +316,22 @@ void main_loop(int *quit, int latency, int interval)
|
||||||
call_mncc_clock();
|
call_mncc_clock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
next_char:
|
||||||
c = get_char();
|
c = get_char();
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 3:
|
case 3:
|
||||||
/* quit */
|
/* quit */
|
||||||
*quit = 1;
|
*quit = 1;
|
||||||
break;
|
goto next_char;
|
||||||
case 'w':
|
case 'w':
|
||||||
/* toggle display */
|
/* toggle display */
|
||||||
display_wave_on(-1);
|
display_wave_on(-1);
|
||||||
break;
|
goto next_char;
|
||||||
default:
|
|
||||||
/* process audio of built-in call control */
|
|
||||||
process_call(c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* process audio of built-in call control */
|
||||||
|
process_call(c);
|
||||||
|
|
||||||
/* sleep a while */
|
/* sleep a while */
|
||||||
usleep(interval * 1000);
|
usleep(interval * 1000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue