[FL-2456] App notifications update (#1175)
* Notifications update: SubGHz * Notifications: ibutton, infrared, rfid
This commit is contained in:
@@ -133,18 +133,18 @@ uint8_t iButtonApp::get_file_name_size() {
|
||||
return file_name_size;
|
||||
}
|
||||
|
||||
void iButtonApp::notify_green_blink() {
|
||||
notification_message(notification, &sequence_blink_green_10);
|
||||
void iButtonApp::notify_read() {
|
||||
notification_message(notification, &sequence_blink_cyan_10);
|
||||
}
|
||||
|
||||
void iButtonApp::notify_emulate() {
|
||||
notification_message(notification, &sequence_blink_magenta_10);
|
||||
}
|
||||
|
||||
void iButtonApp::notify_yellow_blink() {
|
||||
notification_message(notification, &sequence_blink_yellow_10);
|
||||
}
|
||||
|
||||
void iButtonApp::notify_red_blink() {
|
||||
notification_message(notification, &sequence_blink_red_10);
|
||||
}
|
||||
|
||||
void iButtonApp::notify_error() {
|
||||
notification_message(notification, &sequence_error);
|
||||
}
|
||||
|
@@ -75,9 +75,9 @@ public:
|
||||
iButtonWorker* get_key_worker();
|
||||
iButtonKey* get_key();
|
||||
|
||||
void notify_green_blink();
|
||||
void notify_read();
|
||||
void notify_yellow_blink();
|
||||
void notify_red_blink();
|
||||
void notify_emulate();
|
||||
|
||||
void notify_error();
|
||||
void notify_success();
|
||||
|
@@ -83,7 +83,7 @@ bool iButtonSceneEmulate::on_event(iButtonApp* app, iButtonEvent* event) {
|
||||
app->notify_yellow_blink();
|
||||
consumed = true;
|
||||
} else if(event->type == iButtonEvent::Type::EventTypeTick) {
|
||||
app->notify_red_blink();
|
||||
app->notify_emulate();
|
||||
consumed = true;
|
||||
}
|
||||
|
||||
|
@@ -54,7 +54,7 @@ bool iButtonSceneRead::on_event(iButtonApp* app, iButtonEvent* event) {
|
||||
}
|
||||
} else if(event->type == iButtonEvent::Type::EventTypeTick) {
|
||||
consumed = true;
|
||||
app->notify_red_blink();
|
||||
app->notify_read();
|
||||
}
|
||||
|
||||
return consumed;
|
||||
|
@@ -95,7 +95,7 @@ bool iButtonSceneWrite::on_event(iButtonApp* app, iButtonEvent* event) {
|
||||
if(blink_yellow) {
|
||||
app->notify_yellow_blink();
|
||||
} else {
|
||||
app->notify_red_blink();
|
||||
app->notify_emulate();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user