opt assignment was being erased by bzero call

This commit is contained in:
Francisco Paisana 2018-03-06 15:19:47 +00:00
parent 4575a9e610
commit cd0373c533
1 changed files with 1 additions and 1 deletions

View File

@ -80,8 +80,8 @@ static void log_overflow(rf_uhd_handler_t *h) {
static void log_late(rf_uhd_handler_t *h, bool is_rx) {
if (h->uhd_error_handler) {
srslte_rf_error_t error;
error.opt = is_rx?1:0;
bzero(&error, sizeof(srslte_rf_error_t));
error.opt = is_rx?1:0;
error.type = SRSLTE_RF_ERROR_LATE;
h->uhd_error_handler(error);
}