diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugins/battery_bench.c | 2 | ||||
| -rw-r--r-- | apps/plugins/test_codec.c | 2 | ||||
| -rw-r--r-- | apps/plugins/test_disk.c | 4 | ||||
| -rw-r--r-- | apps/plugins/test_gfx.c | 2 | ||||
| -rw-r--r-- | apps/plugins/test_grey.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index be509cf..302d74c 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -24,7 +24,7 @@ #include "plugin.h" -#define BATTERY_LOG "/battery_bench.txt" +#define BATTERY_LOG HOME_DIR"/battery_bench.txt" #define BUF_SIZE 16000 #define EV_EXIT 1337 diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 849b40d..4c0739f 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -80,7 +80,7 @@ static bool log_init(bool use_logfile) if (use_logfile) { log_close(); - rb->create_numbered_filename(logfilename, "/", "test_codec_log_", ".txt", + rb->create_numbered_filename(logfilename, HOME_DIR, "test_codec_log_", ".txt", 2 IF_CNFN_NUM_(, NULL)); log_fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); return log_fd >= 0; diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index 6d5ea29..7c46101 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c @@ -24,7 +24,7 @@ -#define TESTBASEDIR "/__TEST__" +#define TESTBASEDIR HOME_DIR "/__TEST__" #define TEST_FILE TESTBASEDIR "/test_disk.tmp" #define FRND_SEED 0x78C3 /* arbirary */ @@ -83,7 +83,7 @@ static bool log_init(void) rb->lcd_clear_display(); rb->lcd_update(); - rb->create_numbered_filename(logfilename, "/", "test_disk_log_", ".txt", + rb->create_numbered_filename(logfilename, HOME_DIR, "test_disk_log_", ".txt", 2 IF_CNFN_NUM_(, NULL)); log_fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); return log_fd >= 0; diff --git a/apps/plugins/test_gfx.c b/apps/plugins/test_gfx.c index 4081e64..1dfab8c 100644 --- a/apps/plugins/test_gfx.c +++ b/apps/plugins/test_gfx.c @@ -46,7 +46,7 @@ static int log_init(void) char logfilename[MAX_PATH]; int fd; - rb->create_numbered_filename(logfilename, "/", "test_gfx_log_", ".txt", + rb->create_numbered_filename(logfilename, HOME_DIR, "test_gfx_log_", ".txt", 2 IF_CNFN_NUM_(, NULL)); fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); return fd; diff --git a/apps/plugins/test_grey.c b/apps/plugins/test_grey.c index efceeff..f4555c1 100644 --- a/apps/plugins/test_grey.c +++ b/apps/plugins/test_grey.c @@ -247,7 +247,7 @@ enum plugin_status plugin_start(const void* parameter) case GREY_OK: /* dump result in form suitable for lcdlinear[] */ - rb->create_numbered_filename(filename, "/", "test_grey_", + rb->create_numbered_filename(filename, HOME_DIR, "test_grey_", ".txt", 2 IF_CNFN_NUM_(, NULL)); fd = rb->open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666); if (fd >= 0) |