Skip to content

Commit f32cd7d

Browse files
committed
bios: Fix typo in gamepad
1 parent f64a022 commit f32cd7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bios/src/gamepad.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub fn init_pad(buf1: &mut [u16], buf2: &mut [u16]) -> u32 {
3838
};
3939
let ctxt = GamepadCtxt {
4040
buffer1: NonNull::new(buf1).unwrap().cast(),
41-
buffer2: NonNull::new(buf1).unwrap().cast(),
41+
buffer2: NonNull::new(buf2).unwrap().cast(),
4242
};
4343
let mut t = Thread::create_with_arg(gamepad_thread, ctxt).unwrap();
4444
t.unpark();

0 commit comments

Comments
 (0)