apps/blestress - compilation error

Building the app returned error: multiple definition of `stress_timer_callout'. Moving the it's declaration to stress.c fixes the issue - this structure is only used there.
This commit is contained in:
Krzysztof Kopyściński
2020-08-03 09:50:59 +02:00
committed by Łukasz Rymanowski
parent 87783b12ae
commit aa2267ab91
2 changed files with 3 additions and 1 deletions
+3
View File
@@ -19,6 +19,8 @@
#include "stress.h"
static struct os_callout stress_timer_callout;
void
com_stress_print_report(const struct com_stress_test_ctx *test_ctxs)
{
@@ -176,6 +178,7 @@ void
stress_start_timer(uint32_t timeout_ms, os_event_fn *ev_cb)
{
int rc;
os_callout_stop(&stress_timer_callout);
os_callout_init(&stress_timer_callout, os_eventq_dflt_get(), ev_cb, NULL);
-1
View File
@@ -45,7 +45,6 @@ extern "C" {
#define STRESS_FIND_CHR 2
#define STRESS_FIND_DSC 3
struct os_callout stress_timer_callout;
struct stress_gatt_search_ctx;
typedef void stress_gatt_disc_end_fn(struct stress_gatt_search_ctx *search_ctx);