summaryrefslogtreecommitdiff
path: root/firmware/logf.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/logf.c')
-rw-r--r--firmware/logf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/firmware/logf.c b/firmware/logf.c
index 054baa14ea..8821f4a658 100644
--- a/firmware/logf.c
+++ b/firmware/logf.c
@@ -97,15 +97,6 @@ static void displayremote(void)
#define displayremote()
#endif
-static void check_logfindex(void)
-{
- if(logfindex >= MAX_LOGF_LINES) {
- /* wrap */
- logfwrap = true;
- logfindex = 0;
- }
-}
-
#ifdef __PCTOOL__
void _logf(const char *format, ...)
{
@@ -117,6 +108,15 @@ void _logf(const char *format, ...)
printf("DEBUG: %s\n", buf);
}
#else
+static void check_logfindex(void)
+{
+ if(logfindex >= MAX_LOGF_LINES) {
+ /* wrap */
+ logfwrap = true;
+ logfindex = 0;
+ }
+}
+
void _logf(const char *format, ...)
{
int len;