..
This commit is contained in:
29
App.tsx
29
App.tsx
@@ -356,19 +356,28 @@ const App: React.FC = () => {
|
||||
else if (reCmd === ReaderCommand.INVENTORY_G2) {
|
||||
if (status === 0x01 || status === 0x02 || status === 0x03 || status === 0x04) {
|
||||
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 {
|
||||
let errorDetail = RfidProtocol.getStatusDescription(status);
|
||||
if (status === 0xFC && data.length > 0) {
|
||||
errorDetail += ` - ${RfidProtocol.getTagErrorDescription(data[0])}`;
|
||||
}
|
||||
addLog('ERROR', `Command 0x${reCmd.toString(16).toUpperCase()} Failed`, errorDetail);
|
||||
if (status === 0xFB) {
|
||||
addLog('INFO', RfidProtocol.getStatusDescription(status));
|
||||
} else {
|
||||
let errorDetail = RfidProtocol.getStatusDescription(status);
|
||||
if (status === 0xFC && data.length > 0) {
|
||||
errorDetail += ` - ${RfidProtocol.getTagErrorDescription(data[0])}`;
|
||||
}
|
||||
addLog('ERROR', `Command 0x${reCmd.toString(16).toUpperCase()} Failed`, errorDetail);
|
||||
|
||||
if (reCmd === ReaderCommand.WRITE_DATA_G2 && performingQuickWriteRef.current) {
|
||||
performingQuickWriteRef.current = false;
|
||||
verificationRetriesRef.current = 0;
|
||||
addLog('ERROR', 'Quick Write Verification Cancelled due to Write Error');
|
||||
alert("Quick Test Failed during Write operation.");
|
||||
if (reCmd === ReaderCommand.WRITE_DATA_G2 && performingQuickWriteRef.current) {
|
||||
performingQuickWriteRef.current = false;
|
||||
verificationRetriesRef.current = 0;
|
||||
addLog('ERROR', 'Quick Write Verification Cancelled due to Write Error');
|
||||
alert("Quick Test Failed: Write Error (" + errorDetail + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user