fix the mb_master unexpected event messages(timeout) severity to debug

This commit is contained in:
aleks
2025-02-28 10:35:24 +01:00
parent 877d331b4b
commit de2ee7fb40
2 changed files with 4 additions and 4 deletions

View File

@@ -577,12 +577,12 @@ mb_err_enum_t mbm_poll(mb_base_t *inst)
break; break;
default: default:
ESP_LOGE(TAG, MB_OBJ_FMT", unexpected event triggered 0x%02x.", MB_OBJ_PARENT(inst), (int)event.event); ESP_LOGD(TAG, MB_OBJ_FMT": Unexpected event 0x%02x or timeout?", MB_OBJ_PARENT(inst), (int)event.event);
break; break;
} }
} else { } else {
// Something went wrong and task unblocked but there are no any correct events set // Something went wrong and task unblocked but there are no any correct events set
ESP_LOGE(TAG, MB_OBJ_FMT", unexpected event triggered 0x%02x.", MB_OBJ_PARENT(inst), (int)event.event); ESP_LOGD(TAG, MB_OBJ_FMT": Unexpected event 0x%02x or timeout?", MB_OBJ_PARENT(inst), (int)event.event);
status = MB_EILLSTATE; status = MB_EILLSTATE;
} }
return status; return status;

View File

@@ -403,12 +403,12 @@ mb_err_enum_t mbs_poll(mb_base_t *inst)
break; break;
default: default:
ESP_LOGD(TAG, MB_OBJ_FMT": Unexpected event triggered 0x%02x.", MB_OBJ_PARENT(inst), (int)event.event); ESP_LOGD(TAG, MB_OBJ_FMT": Unexpected event 0x%02x or timeout.", MB_OBJ_PARENT(inst), (int)event.event);
break; break;
} }
} else { } else {
// Something went wrong and task unblocked but there are no any correct events set // Something went wrong and task unblocked but there are no any correct events set
ESP_LOGD(TAG, MB_OBJ_FMT": Unexpected event triggered 0x%02x, timeout?", MB_OBJ_PARENT(inst), (int)event.event); ESP_LOGD(TAG, MB_OBJ_FMT": Unexpected event 0x%02x or timeout?", MB_OBJ_PARENT(inst), (int)event.event);
status = MB_EILLSTATE; status = MB_EILLSTATE;
} }
return status; return status;