fix 'lf ti demod' segfault

This commit is contained in:
Philippe Teuwen 2022-01-11 15:06:22 +01:00
parent b15f7c4789
commit 4b7a8f02d4

View file

@ -98,6 +98,9 @@ int demodTI(bool verbose) {
int lowTot = 0, highTot = 0;
int retval = PM3_ESOFT;
if (g_GraphTraceLen < convLen) {
return retval;
}
for (i = 0; i < g_GraphTraceLen - convLen; i++) {
lowSum = 0;
highSum = 0;