mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-29 21:52:03 -07:00
ifttt upd
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user