summaryrefslogtreecommitdiff
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, 2 insertions, 2 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index b951b01432..0c30ebabc3 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -216,7 +216,7 @@ struct batt_info
216 216
217#define BUF_ELEMENTS (sizeof(bat)/sizeof(struct batt_info)) 217#define BUF_ELEMENTS (sizeof(bat)/sizeof(struct batt_info))
218 218
219static struct thread_entry *thread_id; 219static unsigned int thread_id;
220static struct event_queue thread_q; 220static struct event_queue thread_q;
221static bool in_usb_mode; 221static bool in_usb_mode;
222static unsigned int buf_idx; 222static unsigned int buf_idx;
@@ -537,7 +537,7 @@ int main(void)
537 if ((thread_id = rb->create_thread(thread, thread_stack, 537 if ((thread_id = rb->create_thread(thread, thread_stack,
538 sizeof(thread_stack), 0, "Battery Benchmark" 538 sizeof(thread_stack), 0, "Battery Benchmark"
539 IF_PRIO(, PRIORITY_BACKGROUND) 539 IF_PRIO(, PRIORITY_BACKGROUND)
540 IF_COP(, CPU))) == NULL) 540 IF_COP(, CPU))) == 0)
541 { 541 {
542 rb->splash(HZ, "Cannot create thread!"); 542 rb->splash(HZ, "Cannot create thread!");
543 return PLUGIN_ERROR; 543 return PLUGIN_ERROR;