mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix 'lf em 4x50_read - now checks if have enough data in Graphbuffer
This commit is contained in:
parent
aa2f80795d
commit
a3161ae9a2
1 changed files with 6 additions and 0 deletions
|
@ -821,6 +821,12 @@ int EM4x50Read(const char *Cmd, bool verbose) {
|
||||||
|
|
||||||
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
uint8_t bits[MAX_GRAPH_TRACE_LEN] = {0};
|
||||||
size_t size = getFromGraphBuf(bits);
|
size_t size = getFromGraphBuf(bits);
|
||||||
|
|
||||||
|
if (size < 4000) {
|
||||||
|
if (verbose || g_debugMode) PrintAndLogEx(ERR, "Error: EM4x50 - Too little data in Graphbuffer");
|
||||||
|
return PM3_ESOFT;
|
||||||
|
}
|
||||||
|
|
||||||
computeSignalProperties(bits, size);
|
computeSignalProperties(bits, size);
|
||||||
|
|
||||||
signal_t *sp = getSignalProperties();
|
signal_t *sp = getSignalProperties();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue