aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/Watchdog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Watchdog.cpp')
-rw-r--r--src/drivers/Watchdog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Watchdog.cpp b/src/drivers/Watchdog.cpp
index 6c2c963b..eeeb6cfd 100644
--- a/src/drivers/Watchdog.cpp
+++ b/src/drivers/Watchdog.cpp
@@ -41,7 +41,7 @@ namespace {
// RRED (Reload Register Enable) is a bitfield of 8 bits. Each bit represent
// one of the eight reload registers available.
// In this case, we enable only the first one.
- NRF_WDT->RREN |= 1;
+ NRF_WDT->RREN = NRF_WDT->RREN | 1;
}
/// Returns the reset reason provided by the POWER subsystem