projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wait for a while when switching the RESET_N line
[fw/altos]
/
lib
/
ccdbg-debug.c
diff --git
a/lib/ccdbg-debug.c
b/lib/ccdbg-debug.c
index 8f6f9e11a800c20bec8d764d0b87678fc6c19d7d..847361c7bf142b9717c638260a11007863d7154f 100644
(file)
--- a/
lib/ccdbg-debug.c
+++ b/
lib/ccdbg-debug.c
@@
-47,7
+47,8
@@
ccdbg_debug(int level, char *format, ...)
}
void
-ccdbg_flush(
void
)
+ccdbg_flush(
int level
)
{
- fflush(stdout);
+ if (ccdbg_level & level)
+ fflush(stdout);
}