diff --git a/DepositSMUCv2.xaml.cs b/DepositSMUCv2.xaml.cs index ef42383..1e656c7 100644 --- a/DepositSMUCv2.xaml.cs +++ b/DepositSMUCv2.xaml.cs @@ -638,11 +638,7 @@ namespace SafeBagDE70 if (cCmdRsp.ChkCntEnd()) { endflg = true; - //Debug.WriteLine("END FLAG: "+cCmdRsp.recv_dat.dat[1]); } - //Debug.WriteLine("START"); - //Debug.WriteLine($"Num Serial: {seri_num}"); - //Log.Information($"Num Serial: {seri_num}"); while (get_num < seri_num) { @@ -658,19 +654,6 @@ namespace SafeBagDE70 { case 0x00: countSession.TempNotes[0]++; - try - { - Log.Information(cCmdRsp.GetRecvDat()); - if (cCmdRsp.recv_dat.leng > 17) - { - // noteVal = cCmdRsp.recv_dat.dat[17]; - // UpdateCountSession(countSession, noteVal); - } - } - catch(Exception ex) - { - Log.Error(ex, "Serial Status= 0x00"); - } break; case 0x02: //TempNote[1] ++; @@ -773,14 +756,16 @@ namespace SafeBagDE70 serialPortDE70.DiscardOutBuffer(); cCmdRsp.SendXXCmd((byte)Command.CMD_DE_CNTSTART); - if (cCmdRsp.recv_dat != null && cCmdRsp.recv_dat.dat[2] != 43) { } - do - { - serialPortDE70.DiscardInBuffer(); - serialPortDE70.DiscardOutBuffer(); - cCmdRsp.SendXXCmd((byte)Command.CMD_SENSE); - } - while (cCmdRsp.recv_dat != null && cCmdRsp.recv_dat.dat[1] == 0x09); //SR2 = 0x09 : Counting Status + //if (cCmdRsp.recv_dat != null && cCmdRsp.recv_dat.dat[2] != 43) { + //} + + //do + //{ + // serialPortDE70.DiscardInBuffer(); + // serialPortDE70.DiscardOutBuffer(); + // cCmdRsp.SendXXCmd((byte)Command.CMD_SENSE); + //} + //while (cCmdRsp.recv_dat != null && cCmdRsp.recv_dat.dat[1] == 0x09); //SR2 = 0x09 : Counting Status }