store debug.txt on device choosen in settings

This commit is contained in:
Christopher Roy Bratusek 2013-01-01 09:32:57 +01:00
parent 9003bfde0a
commit b81834e353

View File

@ -11,7 +11,7 @@ extern "C" void sdprintf(const char * format, ...)
{
FILE * file;
file = fopen("sd1:/config/HBF/debug.txt", "a");
file = fopen((Settings.device_dat + ":/config/HBF/debug.txt").c_str(), "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
}