Browse Source

Making all code exactly as the one in Momentum-Apps

eried 9 months ago
parent
commit
55516f93e4
2 changed files with 3 additions and 4 deletions
  1. 2 3
      uart_echo.c
  2. 1 1
      uart_echo.h

+ 2 - 3
uart_echo.c

@@ -132,8 +132,7 @@ static int32_t uart_echo_worker(void* context) {
             } while(length > 0);
             } while(length > 0);
 
 
             //notification_message(app->notification, &sequence_notification);
             //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);
         }
         }
     }
     }
 
 
@@ -151,7 +150,7 @@ static UartEchoApp* uart_echo_app_alloc() {
 
 
     // View dispatcher
     // View dispatcher
     app->view_dispatcher = view_dispatcher_alloc();
     app->view_dispatcher = view_dispatcher_alloc();
-    view_dispatcher_enable_queue(app->view_dispatcher);
+
     view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui, ViewDispatcherTypeFullscreen);
     view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui, ViewDispatcherTypeFullscreen);
 
 
     // Views
     // Views

+ 1 - 1
uart_echo.h

@@ -9,7 +9,7 @@
 #include <gui/view_dispatcher.h>
 #include <gui/view_dispatcher.h>
 #include <gui/modules/dialog_ex.h>
 #include <gui/modules/dialog_ex.h>
 
 
-#define LINES_ON_SCREEN 6
+#define LINES_ON_SCREEN   6
 #define COLUMNS_ON_SCREEN 21
 #define COLUMNS_ON_SCREEN 21
 
 
 static const NotificationSequence sequence_alarm = {
 static const NotificationSequence sequence_alarm = {