From 5b0e2e30a49a0cb0c2855956f5cc74bfff1d6878 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Wed, 14 Nov 2018 19:54:32 -0700 Subject: [PATCH] more correct example --- examples/light_cycle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/light_cycle.rs b/examples/light_cycle.rs index ac8bb72..dc31173 100644 --- a/examples/light_cycle.rs +++ b/examples/light_cycle.rs @@ -102,7 +102,7 @@ pub enum TriBool { } pub fn read_key_input() -> KeyInputSetting { - unsafe { KeyInputSetting(KEYINPUT.read_volatile() ^ 0b1111_1111_1111_1111) } + unsafe { KeyInputSetting(KEYINPUT.read_volatile() ^ 0b0000_0011_1111_1111) } } pub const KEY_A: u16 = 1 << 0;