chg: 'hf sniff' - now malloc and is interupable

This commit is contained in:
iceman1001 2020-06-21 18:13:14 +02:00
commit 18da534554
3 changed files with 49 additions and 26 deletions

View file

@ -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