|
@@ -114,9 +114,13 @@ ErrorCodeEnum CDeviceControlFSM::OnInit()
|
|
|
eErr = m_hDevHelper->DevOpen(port, baudRate);
|
|
|
if (eErr != Error_Succeed) {
|
|
|
Dbg("´ò¿ªÉ豸ʧ°Ü");
|
|
|
+ LOG_DEVCONTROL_ERROR_MSG_MACRO(eErr, DevOpen);
|
|
|
return Error_DevConnFailed;
|
|
|
}
|
|
|
- m_hDevHelper->PortControl(USB_PORT_ENABLE);
|
|
|
+ eErr = m_hDevHelper->PortControl(USB_PORT_ENABLE);
|
|
|
+ if (eErr != Error_Succeed) {
|
|
|
+ LOG_DEVCONTROL_ERROR_MSG_MACRO(eErr, PortControl);
|
|
|
+ }
|
|
|
}
|
|
|
return Error_Succeed;
|
|
|
}
|