diff --git a/services/xous-log/src/platform/bao1x/implementation.rs b/services/xous-log/src/platform/bao1x/implementation.rs index fa48a57f1..c57249395 100644 --- a/services/xous-log/src/platform/bao1x/implementation.rs +++ b/services/xous-log/src/platform/bao1x/implementation.rs @@ -13,6 +13,7 @@ use utralib::generated::*; pub struct Output { // This element is not used, but rather it prevents the interrupt handler from going out of scope. + #[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))] _uart_irq: Pin>, } @@ -88,7 +89,10 @@ pub fn init() -> Output { println!("Mapped UART @ {:08x}", uart.as_ptr() as usize); println!("Process: map success!"); - Output { _uart_irq: uart_irq } + Output { + #[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))] + _uart_irq: uart_irq, + } } #[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))]