Skip to content
Snippets Groups Projects
Commit 960d7042 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

msp430fr5994lp sleep_ms: handle ms == 0

parent d655a5eb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment