mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-17 14:39:55 +00:00
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:
committed by
Łukasz Rymanowski
parent
87783b12ae
commit
aa2267ab91
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user