mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
add logs and decerase rx queue wait timer
This commit is contained in:
@@ -350,6 +350,8 @@ esp_err_t DataLinkManager::receive_rmt(uint8_t channel){
|
||||
if (!async_receive_queue->enqueue(std::move(metadata), std::chrono::milliseconds(ASYNC_QUEUE_WAIT_TICKS))){
|
||||
return ESP_ERR_TIMEOUT;
|
||||
}
|
||||
// ESP_LOGI("TMP", "Control frame LUT cache HIT - hash=0x%08lX", peeked_hash);
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
// Cache miss – fall through to full validation below
|
||||
@@ -420,12 +422,12 @@ esp_err_t DataLinkManager::receive_rmt(uint8_t channel){
|
||||
|
||||
//check for a rip frame
|
||||
if (static_cast<FrameType>(GET_TYPE(header.type_flag)) == FrameType::RIP_TABLE_CONTROL){
|
||||
ESP_LOGI(DEBUG_LINK_TAG, "Got a RIP frame");
|
||||
ESP_LOGI(DEBUG_LINK_TAG, "Got a RIP frame from channel %d", channel);
|
||||
|
||||
for (size_t i = 0; i < message_size-1; i+=2){
|
||||
uint8_t board_id = message->data()[i];
|
||||
uint8_t hops = message->data()[i+1];
|
||||
// ESP_LOGI(DEBUG_LINK_TAG, "Received: board_id %d and number of hops %d on channel %d", board_id, hops, channel);
|
||||
ESP_LOGI(DEBUG_LINK_TAG, "Received: board_id %d and number of hops %d on channel %d", board_id, hops, channel);
|
||||
|
||||
RIPRow* entry = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user