Actually use the detected parity.
This commit is contained in:
parent
550bf677cd
commit
77c80aeb25
@ -613,7 +613,7 @@ int mdm_handle_char(modem_config *cfg, char ch)
|
||||
else if (ch == (char) (cfg->s[SRegisterCR])) {
|
||||
// we have a line, process.
|
||||
cfg->pchars[2] = ch | parbit;
|
||||
detect_parity(cfg);
|
||||
cfg->parity = detect_parity(cfg);
|
||||
cfg->cur_line[cfg->cur_line_idx] = 0;
|
||||
strncpy(cfg->last_cmd, cfg->cur_line, sizeof(cfg->last_cmd) - 1);
|
||||
mdm_parse_cmd(cfg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user