From 64cb749c890963fe1d8e03dde0500d9850f1729a Mon Sep 17 00:00:00 2001 From: schneider Date: Sun, 18 Dec 2011 04:17:21 +0100 Subject: [PATCH] disabled debug output from saveConfig --- firmware/basic/config.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/firmware/basic/config.c b/firmware/basic/config.c index e0eba99..f933b52 100644 --- a/firmware/basic/config.c +++ b/firmware/basic/config.c @@ -56,12 +56,15 @@ int saveConfig(void){ UINT writebytes; UINT allwrite=0; int res; - +#if DEBUG lcdClear(); +#endif res=f_open(&file, CONFFILE, FA_OPEN_ALWAYS|FA_WRITE); +#if DEBUG lcdPrint("create:"); lcdPrintln(f_get_rc_string(res)); +#endif if(res){ return 1; }; @@ -70,20 +73,26 @@ int saveConfig(void){ res = f_write(&file, &the_config[i].value, sizeof(uint8_t), &writebytes); allwrite+=writebytes; if(res){ +#if DEBUG lcdPrint("write:"); lcdPrintln(f_get_rc_string(res)); +#endif return 1; }; }; +#if DEBUG lcdPrint("write:"); lcdPrintln(f_get_rc_string(res)); lcdPrint(" ("); lcdPrintInt(allwrite); lcdPrintln("b)"); +#endif res=f_close(&file); +#if DEBUG lcdPrint("close:"); lcdPrintln(f_get_rc_string(res)); +#endif if(res){ return 1; };