diff --git a/src/modem_core.c b/src/modem_core.c index 43d128e..9a8a0fb 100644 --- a/src/modem_core.c +++ b/src/modem_core.c @@ -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);