aboutsummaryrefslogtreecommitdiff
path: root/src/peripheral/dcb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/peripheral/dcb.rs')
-rw-r--r--src/peripheral/dcb.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral/dcb.rs b/src/peripheral/dcb.rs
index ef879ac..a4db9fc 100644
--- a/src/peripheral/dcb.rs
+++ b/src/peripheral/dcb.rs
@@ -74,7 +74,7 @@ impl DCB {
pub fn is_debugger_attached() -> bool {
unsafe {
// do an 8-bit read of the 32-bit DHCSR register, and get the LSB
- let value = ptr::read_volatile(Self::ptr() as *const u8);
+ let value = ptr::read_volatile(Self::PTR as *const u8);
value & 0x1 == 1
}
}