diff --git a/demod_flex.c b/demod_flex.c index b6ef2cf..341a226 100644 --- a/demod_flex.c +++ b/demod_flex.c @@ -814,10 +814,11 @@ static void decode_phase(struct Flex * flex, char PhaseNo) { verbprintf(3, "FLEX: BlockInfoWord: (Phase %c) BIW:%08X AW:%02i-%02i (%i pages)\n", PhaseNo, biw, aoffset, voffset, voffset-aoffset); - int flex_groupmessage = 0; // Iterate through pages and dispatch to appropriate handler for (i = aoffset; i < voffset; i++) { + int flex_groupmessage = 0; + j = voffset+i-aoffset; // Start of vector field for address @ i if (phaseptr[i] == 0x00000000 ||