summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/battery_bench.c2
-rw-r--r--apps/plugins/test_codec.c2
-rw-r--r--apps/plugins/test_disk.c4
-rw-r--r--apps/plugins/test_gfx.c2
-rw-r--r--apps/plugins/test_grey.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index be509cffcb..302d74c02a 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -24,7 +24,7 @@
24#include "plugin.h" 24#include "plugin.h"
25 25
26 26
27#define BATTERY_LOG "/battery_bench.txt" 27#define BATTERY_LOG HOME_DIR"/battery_bench.txt"
28#define BUF_SIZE 16000 28#define BUF_SIZE 16000
29 29
30#define EV_EXIT 1337 30#define EV_EXIT 1337
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 849b40de42..4c0739f660 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -80,7 +80,7 @@ static bool log_init(bool use_logfile)
80 80
81 if (use_logfile) { 81 if (use_logfile) {
82 log_close(); 82 log_close();
83 rb->create_numbered_filename(logfilename, "/", "test_codec_log_", ".txt", 83 rb->create_numbered_filename(logfilename, HOME_DIR, "test_codec_log_", ".txt",
84 2 IF_CNFN_NUM_(, NULL)); 84 2 IF_CNFN_NUM_(, NULL));
85 log_fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); 85 log_fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666);
86 return log_fd >= 0; 86 return log_fd >= 0;
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c
index 6d5ea29d57..7c46101ebc 100644
--- a/apps/plugins/test_disk.c
+++ b/apps/plugins/test_disk.c
@@ -24,7 +24,7 @@
24 24
25 25
26 26
27#define TESTBASEDIR "/__TEST__" 27#define TESTBASEDIR HOME_DIR "/__TEST__"
28#define TEST_FILE TESTBASEDIR "/test_disk.tmp" 28#define TEST_FILE TESTBASEDIR "/test_disk.tmp"
29#define FRND_SEED 0x78C3 /* arbirary */ 29#define FRND_SEED 0x78C3 /* arbirary */
30 30
@@ -83,7 +83,7 @@ static bool log_init(void)
83 rb->lcd_clear_display(); 83 rb->lcd_clear_display();
84 rb->lcd_update(); 84 rb->lcd_update();
85 85
86 rb->create_numbered_filename(logfilename, "/", "test_disk_log_", ".txt", 86 rb->create_numbered_filename(logfilename, HOME_DIR, "test_disk_log_", ".txt",
87 2 IF_CNFN_NUM_(, NULL)); 87 2 IF_CNFN_NUM_(, NULL));
88 log_fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); 88 log_fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666);
89 return log_fd >= 0; 89 return log_fd >= 0;
diff --git a/apps/plugins/test_gfx.c b/apps/plugins/test_gfx.c
index 4081e64d13..1dfab8c3b4 100644
--- a/apps/plugins/test_gfx.c
+++ b/apps/plugins/test_gfx.c
@@ -46,7 +46,7 @@ static int log_init(void)
46 char logfilename[MAX_PATH]; 46 char logfilename[MAX_PATH];
47 int fd; 47 int fd;
48 48
49 rb->create_numbered_filename(logfilename, "/", "test_gfx_log_", ".txt", 49 rb->create_numbered_filename(logfilename, HOME_DIR, "test_gfx_log_", ".txt",
50 2 IF_CNFN_NUM_(, NULL)); 50 2 IF_CNFN_NUM_(, NULL));
51 fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666); 51 fd = rb->open(logfilename, O_RDWR|O_CREAT|O_TRUNC, 0666);
52 return fd; 52 return fd;
diff --git a/apps/plugins/test_grey.c b/apps/plugins/test_grey.c
index efceeff2c3..f4555c1eed 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)
247 case GREY_OK: 247 case GREY_OK:
248 248
249 /* dump result in form suitable for lcdlinear[] */ 249 /* dump result in form suitable for lcdlinear[] */
250 rb->create_numbered_filename(filename, "/", "test_grey_", 250 rb->create_numbered_filename(filename, HOME_DIR, "test_grey_",
251 ".txt", 2 IF_CNFN_NUM_(, NULL)); 251 ".txt", 2 IF_CNFN_NUM_(, NULL));
252 fd = rb->open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666); 252 fd = rb->open(filename, O_RDWR|O_CREAT|O_TRUNC, 0666);
253 if (fd >= 0) 253 if (fd >= 0)