This commit is contained in:
backuppc
2026-01-23 13:45:48 +09:00
parent 20bf781276
commit 314a6cc89c

11
App.tsx
View File

@@ -356,7 +356,15 @@ const App: React.FC = () => {
else if (reCmd === ReaderCommand.INVENTORY_G2) { else if (reCmd === ReaderCommand.INVENTORY_G2) {
if (status === 0x01 || status === 0x02 || status === 0x03 || status === 0x04) { if (status === 0x01 || status === 0x02 || status === 0x03 || status === 0x04) {
handleInventoryResponse(data); handleInventoryResponse(data);
} else if (status === 0xFB) {
addLog('INFO', RfidProtocol.getStatusDescription(status));
} else {
let errorDetail = RfidProtocol.getStatusDescription(status);
addLog('WARN', `Inventory Failed: ${errorDetail}`, `Status: 0x${status.toString(16).toUpperCase()}`);
} }
} else {
if (status === 0xFB) {
addLog('INFO', RfidProtocol.getStatusDescription(status));
} else { } else {
let errorDetail = RfidProtocol.getStatusDescription(status); let errorDetail = RfidProtocol.getStatusDescription(status);
if (status === 0xFC && data.length > 0) { if (status === 0xFC && data.length > 0) {
@@ -368,7 +376,8 @@ const App: React.FC = () => {
performingQuickWriteRef.current = false; performingQuickWriteRef.current = false;
verificationRetriesRef.current = 0; verificationRetriesRef.current = 0;
addLog('ERROR', 'Quick Write Verification Cancelled due to Write Error'); addLog('ERROR', 'Quick Write Verification Cancelled due to Write Error');
alert("Quick Test Failed during Write operation."); alert("Quick Test Failed: Write Error (" + errorDetail + ")");
}
} }
} }