Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kali committed Sep 4, 2022
1 parent 66b7fbb commit 21f2620
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bc_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static
void cbTimer (FuriMessageQueue* queue)
{
// Every function has an ENTER at the top, and a LEAVE before it returns
// ...these generate code flow messages if TRACE level messaging in enabled
// ...these generate code flow messages if TRACE level messaging is enabled
ENTER;

// Sanity checks
Expand All @@ -61,7 +61,9 @@ void cbTimer (FuriMessageQueue* queue)

// Put a "tick" event message on the message queue
// furi_message_queue_put | furi/core/message_queue.*
eventMsg_t message = {.id = EVID_TICK};
eventMsg_t message = {
.id = EVID_TICK
};
furi_message_queue_put(queue, &message, 0);

LEAVE;
Expand All @@ -80,7 +82,10 @@ void cbInput (InputEvent* event, FuriMessageQueue* queue)
furi_assert(event);

// Put an "input" event message on the message queue
eventMsg_t message = {.id = EVID_KEY, .input = *event};
eventMsg_t message = {
.id = EVID_KEY,
.input = *event
};
furi_message_queue_put(queue, &message, FuriWaitForever);

LEAVE;
Expand Down
2 changes: 2 additions & 0 deletions bc_logging.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef BC_LOGGING_H_
#define BC_LOGGING_H_

#include <furi.h>

#include "err.h" // appName

//----------------------------------------------------------------------------- ----------------------------------------
Expand Down

0 comments on commit 21f2620

Please sign in to comment.