Skip to content

Commit

Permalink
Merge pull request #227 from ramonsmits/flex-newline-bugfix
Browse files Browse the repository at this point in the history
FLEX: Fix edge case where no timestamp prefix was added when running with `--timestamp`
  • Loading branch information
EliasOenal authored Sep 24, 2024
2 parents 9455bdc + 949ee32 commit 83aa3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demod_flex.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,8 @@ static void parse_alphanumeric(struct Flex * flex, unsigned int * phaseptr, char
flex->GroupHandler.GroupFrame[groupbit] = -1;
flex->GroupHandler.GroupCycle[groupbit] = -1;
}
pt_offset += sprintf(pt_out + pt_offset, "|ALN|%s\n", message);
verbprintf(0, "%s", pt_out);
pt_offset += sprintf(pt_out + pt_offset, "|ALN|%s", message);
verbprintf(0, "%s\n", pt_out);
}

static void parse_numeric(struct Flex * flex, unsigned int * phaseptr, char PhaseNo, int j) {
Expand Down

0 comments on commit 83aa3df

Please sign in to comment.