mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
replace usb_poll_validate_length() by data_available() that supports USART too
This commit is contained in:
parent
d7614684f8
commit
3b12ba2e93
21 changed files with 50 additions and 41 deletions
|
@ -46,7 +46,7 @@ void HfSniff(int samplesToSkip, int triggersToSkip) {
|
|||
SpinDelay(100);
|
||||
|
||||
uint16_t r = 0;
|
||||
while (!BUTTON_PRESS() && !usb_poll_validate_length()) {
|
||||
while (!BUTTON_PRESS() && !data_available()) {
|
||||
WDT_HIT();
|
||||
|
||||
if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue