|
|
|
@ -152,7 +152,7 @@ void CommsClass::RunTask() {
@@ -152,7 +152,7 @@ void CommsClass::RunTask() {
|
|
|
|
|
ESP_LOGE(TAG, "invalid packet len received: %d", packet_len); |
|
|
|
|
packet_len = -1; |
|
|
|
|
} else { |
|
|
|
|
ESP_LOGI(TAG, "rx packet len: %d", packet_len); |
|
|
|
|
ESP_LOGV(TAG, "rx packet len: %d", packet_len); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { // receiving packet data now
|
|
|
|
@ -161,7 +161,7 @@ void CommsClass::RunTask() {
@@ -161,7 +161,7 @@ void CommsClass::RunTask() {
|
|
|
|
|
ESP_LOGE(TAG, "timeout for packet rx"); |
|
|
|
|
lora.Flush(); |
|
|
|
|
} else { |
|
|
|
|
ESP_LOGI(TAG, "rx data: %.*s", packet_len, rx_buf); |
|
|
|
|
ESP_LOGV(TAG, "rx data: %.*s", packet_len, rx_buf); |
|
|
|
|
HandlePacket(rx_buf, packet_len); |
|
|
|
|
} |
|
|
|
|
packet_len = -1; // wait for new packet len
|
|
|
|
|