less verbose logging in ugv_comms

This commit is contained in:
Alex Mikhalev 2019-02-13 18:40:20 -08:00
parent 39d6298c0d
commit dd86a105f3
2 changed files with 3 additions and 3 deletions

View File

@ -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() {
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

View File

@ -19,7 +19,7 @@ namespace messages = uas::ugv::messages;
class CommsClass {
public:
static constexpr int MAX_PACKET_LEN = 255;
static constexpr int MAX_PACKET_LEN = 128;
static constexpr TickType_t PACKET_RX_TIMEOUT = pdMS_TO_TICKS(200);
CommsClass();