mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
improve cardhopper to improve reliability when parts of the packet are buffered
This commit is contained in:
parent
5057f1a684
commit
df5e2ce05b
3 changed files with 27 additions and 6 deletions
|
@ -718,6 +718,10 @@ static uint8_t usb_read_ng_buffer[64] = {0};
|
|||
static uint8_t usb_read_ng_bufoffset = 0;
|
||||
static uint8_t usb_read_ng_buflen = 0;
|
||||
|
||||
bool usb_read_ng_has_buffered_data(void) {
|
||||
return usb_read_ng_buflen > 0;
|
||||
}
|
||||
|
||||
uint32_t usb_read_ng(uint8_t *data, size_t len) {
|
||||
|
||||
if (len == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue