From 45e8403d4d4f50c3b193c0f2eec06352c8200f25 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 9 Mar 2019 12:54:39 +0100 Subject: [PATCH] fix: 'lf t55' - aquiredata uses getsamples --- client/cmdlft55xx.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 285eb75bb..3e4e8dc2a 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -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; }