if (command.opcode_set == 1)
{
push_back(MSGSTART);
- push_escaped(command.parameters.empty() ? (uint8_t)MSGCODE_TRANSMIT_EOM : (uint8_t)MSGCODE_TRANSMIT);
+ push_escaped(command.parameters.IsEmpty() ? (uint8_t)MSGCODE_TRANSMIT_EOM : (uint8_t)MSGCODE_TRANSMIT);
push_back((uint8_t) command.opcode);
push_back(MSGEND);
//clear any input bytes
uint8_t buff[1024];
- m_port->Read(buff, sizeof(buff), 500);
+ while (m_port->Read(buff, sizeof(buff), 500) > 0) {}
if (CreateThread())
{