if (errors) return usage_lf_cmdread();
// zero and one lengths
- c.arg[1] = zero << 16 | one;
+ c.arg[1] = (uint32_t)(zero << 16 | one);
// add frequency 125 or 134
c.arg[2] = useHighFreq;
for (i = 0; i < (GraphTraceLen-2048); i++) {
int sum = 0;
int j;
- for (j = 0; j < arraylen(SyncPattern); j++) {
+ for (j = 0; j < ARRAYLEN(SyncPattern); j++) {
sum += GraphBuffer[i+j]*SyncPattern[j];
}
if (sum > bestCorrel) {