always print RF errors to stdout

This commit is contained in:
Andre Puschmann 2019-09-24 14:49:03 +02:00
parent 1a68fbc460
commit b631106612
1 changed files with 11 additions and 1 deletions

View File

@ -60,8 +60,18 @@ void metrics_stdout::toggle_print(bool b)
void metrics_stdout::set_metrics(ue_metrics_t &metrics, const uint32_t period_usec)
{
if(!do_print || ue == NULL)
if (ue == NULL) {
return;
}
// always print RF error
if (metrics.rf.rf_error) {
printf("RF status: O=%d, U=%d, L=%d\n", metrics.rf.rf_o, metrics.rf.rf_u, metrics.rf.rf_l);
}
if (!do_print) {
return;
}
if (metrics.stack.rrc.state != RRC_STATE_CONNECTED) {
cout << "--- disconnected ---" << endl;