summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5994lp/arch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/msp430fr5994lp/arch.cc')
-rw-r--r--src/arch/msp430fr5994lp/arch.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/msp430fr5994lp/arch.cc b/src/arch/msp430fr5994lp/arch.cc
index 2e57a5f..de75fbb 100644
--- a/src/arch/msp430fr5994lp/arch.cc
+++ b/src/arch/msp430fr5994lp/arch.cc
@@ -131,6 +131,9 @@ volatile bool sleep_done = false;
// max delay: 524 ms @ 8 MHz
void Arch::sleep_ms(unsigned int const ms)
{
+ if (ms == 0) {
+ return;
+ }
sleep_done = false;
#if F_CPU == 16000000UL
TA3CTL = TASSEL__SMCLK | ID__8; // /8