Update ThingSet library and allow messages of 1 byte

This commit is contained in:
Martin Jäger
2023-01-15 08:44:04 +01:00
parent 88467118be
commit 538d40002f
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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));