Update ThingSet library and allow messages of 1 byte
This commit is contained in:
@@ -56,7 +56,7 @@ void serial_pub_msg()
|
||||
void serial_process_command()
|
||||
{
|
||||
// commands must have 2 or more characters
|
||||
if (rx_buf_pos > 1) {
|
||||
if (rx_buf_pos > 0) {
|
||||
printf("Received Request (%d bytes): %s\n", strlen(rx_buf), rx_buf);
|
||||
|
||||
int len = ts.process((uint8_t *)rx_buf, strlen(rx_buf), (uint8_t *)tx_buf, sizeof(tx_buf));
|
||||
|
||||
Reference in New Issue
Block a user