Back GetCassete

Chỉ cho phép login qrcode 1 lần
Thêm timeout cho read cassete
This commit is contained in:
Nguyen Dinh Thuan
2024-10-01 22:45:16 +07:00
parent a40462a7b6
commit ac6074c9bf
4 changed files with 74 additions and 18 deletions
+7 -2
View File
@@ -120,7 +120,6 @@ namespace SafeBagDE70
notesInSession = new NotesInSession();
spNotesInSession.DataContext = notesInSession;
ResetButtons();
btnStart.IsEnabled = true;
btnLogout.IsEnabled = true;
@@ -1053,7 +1052,13 @@ namespace SafeBagDE70
if (CheckPreStoreValid(previousCassetData, AppData.MaxNotes, sessions))
{
cCmdRsp.SendXXCmd((byte)Command.CMD_DE_STORESTART);
bSuccess = WaitUntilCountReady(10);
bSuccess = WaitUntilCountReady(20);
if (!bSuccess)
{
cCmdRsp.SendXXCmd((byte)Command.CMD_DE_STORESTART);
bSuccess = WaitUntilCountReady(20);
}
var newCasstData = AppData.GetCassetteData();
str = "AFTER STORE \r\n[CASSETTE]" + AppData.GetNotesString(newCasstData);