Browse Source

Fix get_range method on Pmpbyte

dkhayes117 3 years ago
parent
commit
f1fa0752f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/register/pmpcfgx.rs

+ 1 - 1
src/register/pmpcfgx.rs

@@ -40,7 +40,7 @@ impl PmpByte {
 
     #[inline]
     pub fn get_range(&self) -> Option<Range> {
-        match self.byte.get_bits(4..=5) {
+        match self.byte.get_bits(3..=4) {
             0 => Some(Range::OFF),
             1 => Some(Range::TOR),
             2 => Some(Range::NA4),