notification_show minor optimization
This commit is contained in:
@@ -520,13 +520,11 @@ api:
|
||||
if (!id(is_uploading_tft)) {
|
||||
set_component_visibility->execute("home.bt_notific", true);
|
||||
goto_page->execute("notification");
|
||||
timer_reset_all->execute("notification");
|
||||
disp1->set_component_text_printf("notification.notifi_label", "%s", label.c_str());
|
||||
|
||||
display_wrapped_text->execute("notification.notifi_text01", message.c_str(), display_mode->state == 2 ? 23 : 32);
|
||||
|
||||
notification_label->publish_state(label.c_str());
|
||||
notification_text->publish_state(message.c_str());
|
||||
timer_reset_all->execute(current_page->state.c_str());
|
||||
notification_unread->turn_on();
|
||||
if (notification_sound->state) buzzer->play("two short:d=4,o=5,b=100:16e6,16e6");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user