summaryrefslogtreecommitdiffstats
path: root/apps/plugins/battery_bench.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/battery_bench.c')
-rw-r--r--apps/plugins/battery_bench.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index 75c448bb27..ff979abd8e 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -656,9 +656,7 @@ enum plugin_status plugin_start(const void* parameter)
rb->memset(buf, 0, buf_size);
gThread.stacksize = buf_size;
- gThread.stack = (long *) buf + buf_size; /* stack grows towards *buf */
-
- ALIGN_BUFFER(gThread.stack, gThread.stacksize, sizeof(long));
+ gThread.stack = (long *) buf;
if (gThread.stacksize < MIN_THREAD_STACK_SIZE)
{