From 21f2620035728cd04e1951c3f6a30de1cfe8a280 Mon Sep 17 00:00:00 2001 From: Kali Date: Sun, 4 Sep 2022 02:33:46 -0400 Subject: [PATCH] cleanup --- bc_demo.c | 11 ++++++++--- bc_logging.h | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bc_demo.c b/bc_demo.c index 201a553..e1485fa 100644 --- a/bc_demo.c +++ b/bc_demo.c @@ -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 @@ -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; @@ -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; diff --git a/bc_logging.h b/bc_logging.h index e128700..03eba61 100644 --- a/bc_logging.h +++ b/bc_logging.h @@ -1,6 +1,8 @@ #ifndef BC_LOGGING_H_ #define BC_LOGGING_H_ +#include + #include "err.h" // appName //----------------------------------------------------------------------------- ----------------------------------------