From 1efb2e6ea315a554642031bdaf979696cee49e78 Mon Sep 17 00:00:00 2001 From: Steve Cook Date: Wed, 20 Jul 2022 11:14:44 -0400 Subject: [PATCH] Revert bitmask to .contains for KEY_R --- ctru-rs/examples/camera-image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctru-rs/examples/camera-image.rs b/ctru-rs/examples/camera-image.rs index d32b20d..890a9e7 100644 --- a/ctru-rs/examples/camera-image.rs +++ b/ctru-rs/examples/camera-image.rs @@ -74,7 +74,7 @@ fn main() { break; } - if keys_down.bits() & KeyPad::KEY_R.bits() != 0 { + if keys_down.contains(KeyPad::KEY_R) { println!("Capturing new image"); take_picture(&mut cam, &mut buf); }