From b03bf576917a61c12fe3b330c46d77245f7aeef6 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Fri, 4 Jan 2013 19:17:47 +0100 Subject: [PATCH] Revert "store debug.txt on device choosen in settings" This reverts commit b81834e353ab2fa237512c0d08a4bba883dcb791. --- main/source/xprintf.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/source/xprintf.cpp b/main/source/xprintf.cpp index 04e4202..98d4272 100644 --- a/main/source/xprintf.cpp +++ b/main/source/xprintf.cpp @@ -11,7 +11,7 @@ extern "C" void sdprintf(const char * format, ...) { FILE * file; - file = fopen((Settings.device_dat + ":/config/HBF/debug.txt").c_str(), "a"); + file = fopen("sd1:/config/HBF/debug.txt", "a"); if(file) { fprintf(file, "%s", tmp); @@ -28,10 +28,10 @@ extern "C" void xprintf(const char *str, ...) { if(Options.sdgecko) sdprintf(str); + else if(Options.wifigecko) wifi_printf(str); -#ifndef VWII else gprintf(str); -#endif + }