Skip to content

Commit f1fa075

Browse files
committed
Fix get_range method on Pmpbyte
1 parent 6fe01fd commit f1fa075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/register/pmpcfgx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl PmpByte {
4040

4141
#[inline]
4242
pub fn get_range(&self) -> Option<Range> {
43-
match self.byte.get_bits(4..=5) {
43+
match self.byte.get_bits(3..=4) {
4444
0 => Some(Range::OFF),
4545
1 => Some(Range::TOR),
4646
2 => Some(Range::NA4),

0 commit comments

Comments
 (0)