From a9e611bb1ee6307548dc63c24afde868ddf217d6 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 31 Aug 2012 10:34:49 +0200 Subject: [PATCH] added missing xprintf.[ch] --- main/source/xprintf.cpp | 11 +++++++++++ main/source/xprintf.h | 1 + 2 files changed, 12 insertions(+) create mode 100644 main/source/xprintf.cpp create mode 100644 main/source/xprintf.h diff --git a/main/source/xprintf.cpp b/main/source/xprintf.cpp new file mode 100644 index 0000000..95f17fb --- /dev/null +++ b/main/source/xprintf.cpp @@ -0,0 +1,11 @@ +#include "main.h" +#include "gecko.h" +#include "Network/wifi_gecko.h" + +void xprintf(const char *str, ...) +{ + if(Options.wifigecko) + wifi_printf(str); + else + gprintf(str); +} diff --git a/main/source/xprintf.h b/main/source/xprintf.h new file mode 100644 index 0000000..27ecc0c --- /dev/null +++ b/main/source/xprintf.h @@ -0,0 +1 @@ +void xprintf(const char *str, ...);