fix: 'lf t55' - aquiredata uses getsamples

This commit is contained in:
iceman1001 2019-03-09 12:54:39 +01:00
parent cc81b5bed9
commit 45e8403d4d

View file

@ -1325,15 +1325,8 @@ bool AquireData( uint8_t page, uint8_t block, bool pwdmode, uint32_t password )
return false;
}
uint8_t got[8000];
if ( !GetFromDevice(BIG_BUF, got, sizeof(got), 0, NULL, 4000, true)) {
PrintAndLogEx(WARNING, "command execution time out");
return false;
}
setGraphBuf(got, sizeof(got));
// set signal properties low/high/mean/amplitude and is_noise detection
computeSignalProperties(got, sizeof(got));
RepaintGraphWindow();
getSamples(12000, true);
return !getSignalProperties()->isnoise;
}