mirror of https://github.com/PentHertz/srsLTE.git
fix stdin bug for enb
This commit is contained in:
parent
bf45ba32bf
commit
a08bbe5ad4
|
@ -344,14 +344,19 @@ void *input_loop(void *m)
|
|||
char key;
|
||||
while(running) {
|
||||
cin >> key;
|
||||
if('t' == key) {
|
||||
do_metrics = !do_metrics;
|
||||
if(do_metrics) {
|
||||
cout << "Enter t to stop trace." << endl;
|
||||
} else {
|
||||
cout << "Enter t to restart trace." << endl;
|
||||
if (cin.eof() || cin.bad()) {
|
||||
cout << "Closing stdin thread." << endl;
|
||||
break;
|
||||
} else {
|
||||
if('t' == key) {
|
||||
do_metrics = !do_metrics;
|
||||
if(do_metrics) {
|
||||
cout << "Enter t to stop trace." << endl;
|
||||
} else {
|
||||
cout << "Enter t to restart trace." << endl;
|
||||
}
|
||||
metrics->toggle_print(do_metrics);
|
||||
}
|
||||
metrics->toggle_print(do_metrics);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue