|
7 | 7 | reason = "mem::forget is generally not safe to do with esp_hal types, especially those \ |
8 | 8 | holding buffers for the duration of a data transfer." |
9 | 9 | )] |
| 10 | +#![deny(clippy::large_stack_frames)] |
10 | 11 |
|
11 | 12 | use esp_hal::clock::CpuClock; |
12 | 13 | use esp_hal::timer::timg::TimerGroup; |
@@ -57,6 +58,10 @@ const L2CAP_CHANNELS_MAX: usize = 1; |
57 | 58 | // For more information see: <https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/app_image_format.html#application-description> |
58 | 59 | esp_bootloader_esp_idf::esp_app_desc!(); |
59 | 60 |
|
| 61 | +#[allow( |
| 62 | + clippy::large_stack_frames, |
| 63 | + reason = "it's not unusual to allocate larger buffers etc. in main" |
| 64 | +)] |
60 | 65 | #[esp_rtos::main] |
61 | 66 | async fn main(spawner: Spawner) -> ! { |
62 | 67 | //REPLACE generate-version generate-version |
@@ -110,7 +115,7 @@ async fn main(spawner: Spawner) -> ! { |
110 | 115 | //IF option("ble-trouble") |
111 | 116 | // find more examples https://github.com/embassy-rs/trouble/tree/main/examples/esp32 |
112 | 117 | let transport = BleConnector::new(&radio_init, peripherals.BT, Default::default()).unwrap(); |
113 | | - let ble_controller = ExternalController::<_, 20>::new(transport); |
| 118 | + let ble_controller = ExternalController::<_, 1>::new(transport); |
114 | 119 | let mut resources: HostResources<DefaultPacketPool, CONNECTIONS_MAX, L2CAP_CHANNELS_MAX> = |
115 | 120 | HostResources::new(); |
116 | 121 | let _stack = trouble_host::new(ble_controller, &mut resources); |
|
0 commit comments