mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
chg: 'hf sniff' - now malloc and is interupable
This commit is contained in:
parent
a93053c573
commit
18da534554
3 changed files with 49 additions and 26 deletions
|
@ -1424,7 +1424,12 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||
|
||||
uint16_t len = 0;
|
||||
int res = HfSniff(payload->samplesToSkip, payload->triggersToSkip, &len);
|
||||
reply_ng(CMD_HF_SNIFF, res, (uint8_t *)&len, sizeof(len));
|
||||
|
||||
struct {
|
||||
uint16_t len;
|
||||
} PACKED retval;
|
||||
retval.len = len;
|
||||
reply_ng(CMD_HF_SNIFF, res, (uint8_t *)&retval, sizeof(retval));
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue