We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db7ba2c commit 3a01fd8Copy full SHA for 3a01fd8
1 file changed
port/raspberrypi/rp2xxx/src/hal/pio/common.zig
@@ -426,7 +426,7 @@ pub fn PioImpl(EnumType: type, chip: Chip) type {
426
const regs = self.get_regs();
427
const levels = regs.FLEVEL.raw;
428
429
- return @as(u4, @truncate(levels >> (@as(u5, 4) * snum) + offset));
+ return @as(u4, @truncate(levels >> (@as(u5, 8) * snum) + offset));
430
}
431
432
fn interrupt_bit_pos(
0 commit comments