fix check CDM status
This commit is contained in:
@@ -426,7 +426,7 @@ namespace SafeBagDE70
|
||||
if (!AppData.IsInTransaction)
|
||||
{
|
||||
AppData.GetCDMState();
|
||||
if (cCmdRsp.recv_dat.ret != Constants.E_OK)
|
||||
if (AppData.cCmdRsp==null || AppData.cCmdRsp.cmd_result == SendStatus.SEND_DAT_ERR || AppData.cCmdRsp.cmd_result == SendStatus.SEND_ERR)
|
||||
{
|
||||
AppData.CDMSTATE.CDMStatus = "CDM: LỖI";
|
||||
AppData.DeviceStatus.CDMStatus = (int)CDMStatusCode.DISCONNECT_SERIALPORT;
|
||||
|
||||
Reference in New Issue
Block a user