diff --git a/applications/plugins/ifttt/views/module_view.c b/applications/plugins/ifttt/views/module_view.c index 0112a09d1..ab2c930ac 100644 --- a/applications/plugins/ifttt/views/module_view.c +++ b/applications/plugins/ifttt/views/module_view.c @@ -78,7 +78,9 @@ static void module_view_draw_callback(Canvas* canvas, void* context) { static void module_view_process(ModuleView* module_view, InputEvent* event) { with_view_model( - module_view->view, (ModuleViewModel * model) { + module_view->view, + ModuleViewModel * model, + { if(event->type == InputTypePress) { if(event->key == InputKeyUp) { } else if(event->key == InputKeyDown) { @@ -101,8 +103,8 @@ static void module_view_process(ModuleView* module_view, InputEvent* event) { if(event->key == InputKeyBack) { } } - return true; - }); + }, + true); } static bool module_view_input_callback(InputEvent* event, void* context) { @@ -147,8 +149,10 @@ View* module_view_get_view(ModuleView* module_view) { void module_view_set_data(ModuleView* module_view, bool connected) { furi_assert(module_view); with_view_model( - module_view->view, (ModuleViewModel * model) { + module_view->view, + ModuleViewModel * model, + { model->connected = connected; - return true; - }); + } + true); } \ No newline at end of file diff --git a/applications/plugins/ifttt/views/reboot_view.c b/applications/plugins/ifttt/views/reboot_view.c index d3162c9e2..78942b6e4 100644 --- a/applications/plugins/ifttt/views/reboot_view.c +++ b/applications/plugins/ifttt/views/reboot_view.c @@ -63,8 +63,8 @@ static void reboot_view_draw_callback(Canvas* canvas, void* context) { static void reboot_view_process(RebootView* reboot_view, InputEvent* event) { with_view_model( reboot_view->view, - RebootViewModel * model, - { + RebootViewModel * model, + { if(event->type == InputTypePress) { if(event->key == InputKeyUp) { } else if(event->key == InputKeyDown) { @@ -90,7 +90,7 @@ static void reboot_view_process(RebootView* reboot_view, InputEvent* event) { } } }, - true); + true); } static bool reboot_view_input_callback(InputEvent* event, void* context) { @@ -134,9 +134,9 @@ void reboot_view_set_data(RebootView* reboot_view, bool connected) { furi_assert(reboot_view); with_view_model( reboot_view->view, - RebootViewModel * model, - { + RebootViewModel * model, + { model->connected = connected; }, - true); + true); } \ No newline at end of file diff --git a/applications/plugins/ifttt/views/reset_view.c b/applications/plugins/ifttt/views/reset_view.c index d09bd87ff..18f92fd52 100644 --- a/applications/plugins/ifttt/views/reset_view.c +++ b/applications/plugins/ifttt/views/reset_view.c @@ -62,7 +62,9 @@ static void reset_view_draw_callback(Canvas* canvas, void* context) { static void reset_view_process(ResetView* reset_view, InputEvent* event) { with_view_model( - reset_view->view, (ResetViewModel * model) { + reset_view->view, + ResetViewModel * model, + { if(event->type == InputTypePress) { if(event->key == InputKeyUp) { } else if(event->key == InputKeyDown) { @@ -87,8 +89,8 @@ static void reset_view_process(ResetView* reset_view, InputEvent* event) { if(event->key == InputKeyBack) { } } - return true; - }); + }, + true); } static bool reset_view_input_callback(InputEvent* event, void* context) { @@ -131,8 +133,10 @@ View* reset_view_get_view(ResetView* reset_view) { void reset_view_set_data(ResetView* reset_view, bool connected) { furi_assert(reset_view); with_view_model( - reset_view->view, (ResetViewModel * model) { + reset_view->view, + ResetViewModel * model, + { model->connected = connected; - return true; - }); + }, + true); } \ No newline at end of file diff --git a/applications/plugins/ifttt/views/send_view.c b/applications/plugins/ifttt/views/send_view.c index 4c96fa774..eb04da93e 100644 --- a/applications/plugins/ifttt/views/send_view.c +++ b/applications/plugins/ifttt/views/send_view.c @@ -62,7 +62,9 @@ static void send_view_draw_callback(Canvas* canvas, void* context) { static void send_view_process(SendView* send_view, InputEvent* event) { with_view_model( - send_view->view, (SendViewModel * model) { + send_view->view, + SendViewModel * model, + { if(event->type == InputTypePress) { if(event->key == InputKeyUp) { } else if(event->key == InputKeyDown) { @@ -87,8 +89,8 @@ static void send_view_process(SendView* send_view, InputEvent* event) { if(event->key == InputKeyBack) { } } - return true; - }); + }, + true); } static bool send_view_input_callback(InputEvent* event, void* context) { @@ -131,8 +133,10 @@ View* send_view_get_view(SendView* send_view) { void send_view_set_data(SendView* send_view, bool connected) { furi_assert(send_view); with_view_model( - send_view->view, (SendViewModel * model) { + send_view->view, + SendViewModel * model, + { model->connected = connected; - return true; - }); + }, + true); } \ No newline at end of file