modified hf 14a apdu to report back when extending time and also added a possibililty to interrupt the extension loop with button press or usb commad. A bunch of minor textual changes
This commit is contained in:
1 parent
db877ce4fd
commit
b4cc21c68f
19 files changed
+99
-57
No files matched your search
+3
-1
@@ -1041,8 +1041,9 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms
|
||||
}
|
||||
|
||||
// Add delay depending on the communication channel & speed
|
||||
if (ms_timeout != (size_t) - 1)
|
||||
if (ms_timeout != (size_t) - 1) {
|
||||
ms_timeout += communication_delay();
|
||||
}
|
||||
|
||||
__atomic_store_n(&timeout_start_time, msclock(), __ATOMIC_SEQ_CST);
|
||||
|
||||
@@ -1055,6 +1056,7 @@ bool WaitForResponseTimeoutW(uint32_t cmd, PacketResponseNG *response, size_t ms
|
||||
}
|
||||
|
||||
while (getReply(response)) {
|
||||
|
||||
if (cmd == CMD_UNKNOWN || response->cmd == cmd) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user