11
22
33#include "logic_analyzer_app.h"
4- #include "logic_analyzer_icons.h"
54
65#define COUNT (x ) ((size_t)(sizeof(x) / sizeof((x)[0])))
76
@@ -17,7 +16,7 @@ static const GpioPin* gpios[] = {
1716 & gpio_ext_pa6 ,
1817 & gpio_ext_pa7 };
1918
20- // static const char* gpio_names[] = {"PC0", "PC1", "PC3", "PB2", "PB3", "PA4", "PA6", "PA7"};
19+ //static const char* gpio_names[] = {"PC0", "PC1", "PC3", "PB2", "PB3", "PA4", "PA6", "PA7"};
2120
2221static void render_callback (Canvas * const canvas , void * cb_ctx ) {
2322 AppFSM * app = cb_ctx ;
@@ -43,7 +42,7 @@ static void render_callback(Canvas* const canvas, void* cb_ctx) {
4342 UsbUartState st ;
4443 usb_uart_get_state (app -> uart , & st );
4544
46- snprintf (buffer , sizeof (buffer ), "Rx %ld / Tx %ld" , st .rx_cnt , st .tx_cnt );
45+ snprintf (buffer , sizeof (buffer ), "Rx %ld | Tx %ld" , st .rx_cnt , st .tx_cnt );
4746 canvas_draw_str_aligned (canvas , 5 , y , AlignLeft , AlignBottom , buffer );
4847 y += 20 ;
4948 }
@@ -83,13 +82,13 @@ static void render_callback(Canvas* const canvas, void* cb_ctx) {
8382 furi_mutex_release (app -> mutex );
8483}
8584
86- static void input_callback (InputEvent * input_event , FuriMessageQueue * event_queue ) {
87- furi_assert (event_queue );
85+ static void input_callback (InputEvent * input_event , void * event_queue ) {
86+ furi_assert (( FuriMessageQueue * ) event_queue );
8887
8988 /* better skip than sorry */
90- if (furi_message_queue_get_count (event_queue ) < QUEUE_SIZE ) {
89+ if (furi_message_queue_get_count (( FuriMessageQueue * ) event_queue ) < QUEUE_SIZE ) {
9190 AppEvent event = {.type = EventKeyPress , .input = * input_event };
92- furi_message_queue_put (event_queue , & event , 100 );
91+ furi_message_queue_put (( FuriMessageQueue * ) event_queue , & event , 100 );
9392 }
9493}
9594
@@ -301,7 +300,7 @@ int32_t logic_analyzer_app_main(void* p) {
301300 AppFSM * app = malloc (sizeof (AppFSM ));
302301 app_init (app );
303302
304- DOLPHIN_DEED (DolphinDeedPluginGameStart );
303+ dolphin_deed (DolphinDeedPluginGameStart );
305304 notification_message_block (app -> notification , & sequence_display_backlight_enforce_on );
306305
307306 while (app -> processing ) {
0 commit comments