Git
Wiki
Site
projects
/
soft
/
lpc122x
/
core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa882e0
)
Only call sleep function if we want to sleep
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 21 Sep 2023 22:24:38 +0000
(
00:24
+0200)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Thu, 21 Sep 2023 22:24:38 +0000
(
00:24
+0200)
extdrv/status_led.c
patch
|
blob
|
history
diff --git
a/extdrv/status_led.c
b/extdrv/status_led.c
index
2823b8e
..
f3a919a
100644
(file)
--- a/
extdrv/status_led.c
+++ b/
extdrv/status_led.c
@@
-132,5
+132,7
@@
void chenillard(uint32_t ms)
{
static int n;
status_led(steps[n++ % (sizeof steps / sizeof *steps)]);
- msleep(ms);
+ if (ms > 0) {
+ msleep(ms);
+ }
}
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !