mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
fix: 'lf flexdemod' - bad types
This commit is contained in:
parent
47c808fd5c
commit
c650c23856
1 changed files with 7 additions and 4 deletions
|
@ -189,12 +189,15 @@ int CmdFlexdemod(const char *Cmd) {
|
||||||
#define LONG_WAIT 100
|
#define LONG_WAIT 100
|
||||||
int i, j, start, bit, sum, phase = 0;
|
int i, j, start, bit, sum, phase = 0;
|
||||||
|
|
||||||
uint8_t data[MAX_GRAPH_TRACE_LEN] = {0};
|
int data[GraphTraceLen];
|
||||||
size_t size = getFromGraphBuf(data);
|
memcpy(data, GraphBuffer, GraphTraceLen);
|
||||||
if (size == 0)
|
|
||||||
|
if ( GraphTraceLen < 0 )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (i = 0; i < size; ++i)
|
size_t size = GraphTraceLen;
|
||||||
|
|
||||||
|
for (i = 0; i < GraphTraceLen; ++i)
|
||||||
data[i] = (data[i] < 0) ? -1 : 1;
|
data[i] = (data[i] < 0) ? -1 : 1;
|
||||||
|
|
||||||
for (start = 0; start < size - LONG_WAIT; start++) {
|
for (start = 0; start < size - LONG_WAIT; start++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue