Replace two expressions with cmd_head
This commit is contained in:
parent
5ab0dcb4c5
commit
de20fc6a5a
1 changed files with 2 additions and 2 deletions
|
@ -421,10 +421,10 @@ void get_command()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't parse N again with code_seen('N')
|
// Don't parse N again with code_seen('N')
|
||||||
cmdbuffer[bufindw + CMDHDRSIZE] = '$';
|
*cmd_head = '$';
|
||||||
}
|
}
|
||||||
// if we don't receive 'N' but still see '*'
|
// if we don't receive 'N' but still see '*'
|
||||||
if ((*cmd_head != 'N') && (cmdbuffer[bufindw + CMDHDRSIZE] != '$') && (strchr(cmd_start, '*') != NULL))
|
if ((*cmd_head != 'N') && (*cmd_head != '$') && (strchr(cmd_start, '*') != NULL))
|
||||||
{
|
{
|
||||||
SERIAL_ERROR_START;
|
SERIAL_ERROR_START;
|
||||||
SERIAL_ERRORRPGM(_n("No Line Number with checksum, Last Line: "));////MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM
|
SERIAL_ERRORRPGM(_n("No Line Number with checksum, Last Line: "));////MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM
|
||||||
|
|
Loading…
Reference in a new issue