Add OIGNCR mapping flag

Ignores CR on output to serial device.
This commit is contained in:
Martin Lund 2024-06-27 20:09:18 +02:00
parent 8c471105fe
commit 4723cc3f4e
5 changed files with 25 additions and 6 deletions

View file

@ -119,6 +119,7 @@ struct option_t option =
.map_o_ltu = false,
.map_o_nulbrk = false,
.map_o_msblsb = false,
.map_o_ign_cr = false,
};
void option_print_help(char *argv[])
@ -768,6 +769,10 @@ void option_parse_mappings(const char *map)
{
option.map_o_nulbrk = true;
}
else if (strcmp(token, "OIGNCR") == 0)
{
option.map_o_ign_cr = true;
}
else if (strcmp(token, "MSB2LSB") == 0)
{
option.map_o_msblsb = true;