mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 09:37:21 +02:00
Update code for demo
This commit is contained in:
@@ -50,8 +50,9 @@ DataLinkManager::DataLinkManager(uint8_t board_id, uint8_t num_channels = MAX_CH
|
||||
init_rip();
|
||||
init_scheduler();
|
||||
|
||||
// Start the periodic LUT flush task
|
||||
xTaskCreate(lut_flush_task, "lut_flush", 2048, this, 2, &lut_flush_task_handle);
|
||||
// Start the periodic LUT flush task (priority 1 – below all other link-layer tasks
|
||||
// to avoid preempting tasks that hold internal C++ or FreeRTOS locks)
|
||||
xTaskCreate(lut_flush_task, "lut_flush", 2048, this, 1, &lut_flush_task_handle);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -319,7 +320,6 @@ void DataLinkManager::lut_insert(uint32_t hash, const uint8_t* message, size_t m
|
||||
*/
|
||||
void DataLinkManager::lut_flush(){
|
||||
if (xSemaphoreTake(control_frame_lut_mutex, pdMS_TO_TICKS(SEQUENCE_NUM_MAP_MUTEX_MAX_WAIT_MS)) != pdTRUE){
|
||||
ESP_LOGW(DEBUG_LINK_TAG, "LUT flush: could not acquire mutex, skipping");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -330,7 +330,6 @@ void DataLinkManager::lut_flush(){
|
||||
}
|
||||
|
||||
xSemaphoreGive(control_frame_lut_mutex);
|
||||
ESP_LOGI(DEBUG_LINK_TAG, "Control-frame LUT flushed");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user