Thêm delay tới DoCountStart
This commit is contained in:
@@ -760,10 +760,6 @@ namespace SafeBagDE70
|
||||
bool bSuccess = true;
|
||||
|
||||
string currentMethod = MethodBase.GetCurrentMethod().Name;
|
||||
try
|
||||
{
|
||||
taskCounting = Task.Run(() =>
|
||||
{
|
||||
if (bOpenPort)
|
||||
{
|
||||
serialPortDE70.DiscardInBuffer();
|
||||
@@ -782,6 +778,12 @@ namespace SafeBagDE70
|
||||
}
|
||||
while (cCmdRsp.recv_dat != null && cCmdRsp.recv_dat.dat[1] == 0x09); //SR2 = 0x09 : Counting Status
|
||||
}
|
||||
Thread.Sleep(1000);
|
||||
try
|
||||
{
|
||||
taskCounting = Task.Run(() =>
|
||||
{
|
||||
|
||||
|
||||
var str = "BEFORE COUNT";
|
||||
str+="\r\nSTORED: "+ GetQuantityFromSessions(sessions,true);
|
||||
|
||||
Reference in New Issue
Block a user