优化
This commit is contained in:
@@ -519,6 +519,11 @@ static void nimble_host_task(void *param) {
|
||||
esp_err_t ble_printer_client_init(ble_frame_rx_cb_t rx_cb) {
|
||||
s_rx_cb = rx_cb;
|
||||
|
||||
// NimBLE emits very chatty INFO logs during each chunk write.
|
||||
// Lowering these logs reduces serial I/O overhead and improves runtime smoothness.
|
||||
esp_log_level_set("NimBLE", ESP_LOG_WARN);
|
||||
esp_log_level_set("BLE_INIT", ESP_LOG_WARN);
|
||||
|
||||
s_evt_group = xEventGroupCreate();
|
||||
if (s_evt_group == NULL) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
|
||||
Reference in New Issue
Block a user