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); }