forked from espressif/esp-modbus
fix the mb_master unexpected event messages(timeout) severity to debug
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user