Explorar el Código

Making all code exactly as the one in Momentum-Apps

eried hace 9 meses
padre
commit
b371f5df9c
Se han modificado 2 ficheros con 3 adiciones y 4 borrados
  1. 2 3
      uart_echo.c
  2. 1 1
      uart_echo.h

+ 2 - 3
uart_echo.c

@@ -126,8 +126,7 @@ static int32_t uart_echo_worker(void* context) {
             } while(length > 0);
 
             notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 
@@ -145,7 +144,7 @@ static UartEchoApp* uart_echo_app_alloc() {
 
     // View dispatcher
     app->view_dispatcher = view_dispatcher_alloc();
-    view_dispatcher_enable_queue(app->view_dispatcher);
+
     view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui, ViewDispatcherTypeFullscreen);
 
     // Views

+ 1 - 1
uart_echo.h

@@ -9,7 +9,7 @@
 #include <gui/view_dispatcher.h>
 #include <gui/modules/dialog_ex.h>
 
-#define LINES_ON_SCREEN 6
+#define LINES_ON_SCREEN   6
 #define COLUMNS_ON_SCREEN 21
 
 typedef struct UartDumpModel UartDumpModel;