From 27ee3f1b1b17dd7533bab5b0d3280f82b4229628 Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Tue, 12 Nov 2024 20:04:14 +0100 Subject: [PATCH] Remove reference to `NVIC_PRIO_BITS` for ESP32-C3 codegen bindings --- rtic-macros/src/codegen/bindings/esp32c3.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rtic-macros/src/codegen/bindings/esp32c3.rs b/rtic-macros/src/codegen/bindings/esp32c3.rs index 4caaa35f13..9c778f944a 100644 --- a/rtic-macros/src/codegen/bindings/esp32c3.rs +++ b/rtic-macros/src/codegen/bindings/esp32c3.rs @@ -211,9 +211,7 @@ mod esp32c3 { let max = if let Some(max) = analysis.max_async_prio { quote!(#max) } else { - // No limit - let device = &app.args.device; - quote!(1 << #device::NVIC_PRIO_BITS) + quote!(u8::MAX) // No limit }; vec![quote!(