From d8504ffae5a53540e35618dfb6373fd910b9b990 Mon Sep 17 00:00:00 2001 From: Tronje Krabbe Date: Mon, 28 Oct 2024 10:39:47 +0100 Subject: [PATCH] Fix obscure issue related to function inlining See: https://github.com/Rahix/avr-hal/issues/567 --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 5f95381..b603ff8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -116,6 +116,7 @@ where /// This will read the register (`port_a_reg` for pins 0-7, `port_b_reg` for the other eight), /// set the bit (as specified by the pin position within the register), and write the register /// back to the device. + #[inline(never)] fn update_register_bit( &mut self, pin: u8,