Replace two expressions with cmd_head
This commit is contained in:
parent
5ab0dcb4c5
commit
de20fc6a5a
@ -421,10 +421,10 @@ void get_command()
|
||||
}
|
||||
|
||||
// Don't parse N again with code_seen('N')
|
||||
cmdbuffer[bufindw + CMDHDRSIZE] = '$';
|
||||
*cmd_head = '$';
|
||||
}
|
||||
// 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_ERRORRPGM(_n("No Line Number with checksum, Last Line: "));////MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM
|
||||
|
Loading…
Reference in New Issue
Block a user