strcpy(str,"\r\nSyntax error! Expected syntax is either <8 characters hexadecimal address> for reading\r\n or <8 characters hexadecimal address>,<8 characters hexadecimal value> for writing\r\n");
strcpy(str,"\r\nSyntax error! Expected syntax is either <8 characters hexadecimal address> for reading\r\n or <8 characters hexadecimal address>,<8 characters hexadecimal value> for writing\r\n");
uart0_send_ref((uint8_t*)str,strlen(str));
uart0_send_ref((uint8_t*)str,strlen(str));
return;
return;
}
}
}
}
if((coma_nb&(i<2))||i>17)
if((coma_nb&(i<2))||i>17)
{
{
strcpy(str,"\r\nSyntax error! Expected syntax is either <8 characters hexadecimal address> for reading\r\n or <8 characters hexadecimal address>,<8 characters hexadecimal value> for writing\r\n (Bad length!) \r\n");
strcpy(str,"\r\nSyntax error! Expected syntax is either <8 characters hexadecimal address> for reading\r\n or <8 characters hexadecimal address>,<8 characters hexadecimal value> for writing\r\n (Bad length!) \r\n");