Replace two expressions with cmd_head

This commit is contained in:
Yuri D'Elia 2022-12-15 08:13:02 +01:00 committed by 3d-gussner
parent 5ab0dcb4c5
commit de20fc6a5a

View File

@ -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