fix: 'lf flexdemod' - bad types
This commit is contained in:
@@ -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++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user