issue #2 - unused var gives errors in latest SDK
This commit is contained in:
parent
b6fef49575
commit
9d123a5963
@ -211,7 +211,6 @@ static void subghz_demo_send_count(void* ctx) {
|
|||||||
static void subghz_demo_send_tone(void* ctx, unsigned int frequency) {
|
static void subghz_demo_send_tone(void* ctx, unsigned int frequency) {
|
||||||
furi_assert(ctx);
|
furi_assert(ctx);
|
||||||
DemoContext* demo_context = ctx;
|
DemoContext* demo_context = ctx;
|
||||||
DemoData* data = demo_context->data;
|
|
||||||
FuriMessageQueue* queue = demo_context->queue;
|
FuriMessageQueue* queue = demo_context->queue;
|
||||||
DemoEvent event = {.type = DemoEventSendTone, .number = frequency};
|
DemoEvent event = {.type = DemoEventSendTone, .number = frequency};
|
||||||
furi_message_queue_put(queue, &event, FuriWaitForever);
|
furi_message_queue_put(queue, &event, FuriWaitForever);
|
||||||
@ -280,8 +279,7 @@ static void subghz_demo_update_remote_counter(DemoContext* demo_context, DemoEve
|
|||||||
// Our DemoEventReceivedTone handler invokes this method.
|
// Our DemoEventReceivedTone handler invokes this method.
|
||||||
// We play a quick (100ms) tone of the desired frequency.
|
// We play a quick (100ms) tone of the desired frequency.
|
||||||
static void subghz_demo_play_tone(DemoContext* demo_context, DemoEvent* event) {
|
static void subghz_demo_play_tone(DemoContext* demo_context, DemoEvent* event) {
|
||||||
DemoData* data = demo_context->data;
|
UNUSED(demo_context);
|
||||||
|
|
||||||
unsigned int frequency = event->number;
|
unsigned int frequency = event->number;
|
||||||
FURI_LOG_I(TAG, "Playing frequency %04u", frequency);
|
FURI_LOG_I(TAG, "Playing frequency %04u", frequency);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user