Skip to content

Commit e68a2c2

Browse files
authored
Merge pull request solosky#206 from solosky/develop
2.9.5
2 parents 6c38fb1 + 7716173 commit e68a2c2

File tree

13 files changed

+1232
-1194
lines changed

13 files changed

+1232
-1194
lines changed

fw/application/src/amiidb/db_amiibo.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,5 +846,7 @@ const db_amiibo_t amiibo_list[] = {
846846
{0x22410000, 0x041e0002, "Pyra", "焰"},
847847
{0x22420000, 0x041f0002, "Mythra", "光"},
848848
{0x22c00000, 0x003a0202, "Chibi Robo", "小机器人"},
849+
{0x22430000, 0x043d1b02, "Noah", "诺亚"},
850+
{0x22440000, 0x043e1b02, "Mio", "弥央"},
849851
{0, 0, 0, 0}
850852
};

fw/application/src/amiidb/db_game.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const db_game_t game_list[] = {
1818
{16, 0, "Fire Emblem Engage", "火焰纹章:结合", 80, 13},
1919
{17, 0, "Conga Master Party", "康茄大师派对", 1, 14},
2020
{18, 0, "Diablo3/Diablo III", "暗黑破坏神 3", 85, 1},
21-
{19, 0, "Xenoblade Chronicles 3", "异度神剑3", 45, 3},
21+
{19, 0, "Xenoblade Chronicles 3", "异度神剑3", 45, 5},
2222
{20, 0, "Cyber Shadow", "赛博暗影", 1, 5},
2323
{21, 0, "Just Shapes Beats", "形状节奏", 1, 5},
2424
{22, 0, "Kirby and the Forgotten Land", "星之卡比:探索发现", 1, 5},

fw/application/src/amiidb/db_link.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ const db_link_t link_list[] = {
217217
{19, 0x22420000, 0x041f0002, "", "解锁光之圣杯"},
218218
{19, 0x22410000, 0x041e0002, "", "解锁天之圣杯"},
219219
{19, 0x22400000, 0x002b0002, "", "解锁蒙那多"},
220+
{19, 0x22430000, 0x043d1b02, "", "解锁执政官N服装/诺亚、兰兹、优妮的休闲装"},
221+
{19, 0x22440000, 0x043e1b02, "", "解锁执政官M服装/弥央、圣奈、泰恩的休闲装"},
220222
{20, 0x35c30000, 0x036e0a02, "", "暂无简介"},
221223
{20, 0x35c10000, 0x036c0a02, "", "暂无简介"},
222224
{20, 0x35c00000, 0x02500a02, "", "暂无简介"},

fw/application/src/app/amiibo/scene/amiibo_scene_file_browser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ static void amiibo_scene_file_browser_reload_folders(app_amiibo_t *app) {
6666
}
6767

6868
mui_list_view_sort(app->p_list_view, amiibo_scene_file_browser_list_item_cmp);
69+
mui_view_dispatcher_switch_to_view(app->p_view_dispatcher, AMIIBO_VIEW_ID_LIST);
6970
}
7071

7172
static void amiibo_scene_file_browser_on_selected(mui_list_view_event_t event, mui_list_view_t *p_list_view,
@@ -119,7 +120,6 @@ void amiibo_scene_file_browser_on_enter(void *user_data) {
119120
mui_list_view_set_focus(app->p_list_view, app->current_focus_index);
120121

121122
NRF_LOG_INFO("%X", app);
122-
mui_view_dispatcher_switch_to_view(app->p_view_dispatcher, AMIIBO_VIEW_ID_LIST);
123123
}
124124

125125
void amiibo_scene_file_browser_on_exit(void *user_data) {

fw/application/src/app/settings/scene/settings_scene_main.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,13 @@ static void settings_scene_main_reload(void *user_data) {
174174
p_settings->hibernate_enabled ? _T(ON_F) : _T(OFF_F),
175175
(void *)SETTINGS_MAIN_MENU_ENABLE_HIBERNATE);
176176

177-
snprintf(txt, sizeof(txt), "[%ds]", nrf_pwr_mgmt_get_timeout());
177+
if (nrf_pwr_mgmt_get_timeout() == 0) {
178+
snprintf(txt, sizeof(txt), "%s", getLangString(_L_OFF_F));
179+
} else if (nrf_pwr_mgmt_get_timeout() > 0 && nrf_pwr_mgmt_get_timeout() < 60) {
180+
snprintf(txt, sizeof(txt), "[%ds]", nrf_pwr_mgmt_get_timeout());
181+
} else {
182+
snprintf(txt, sizeof(txt), "[%dm]", nrf_pwr_mgmt_get_timeout() / 60);
183+
}
178184
mui_list_view_add_item_ext(app->p_list_view, 0xe1c9, _T(APP_SET_SLEEP_TIMEOUT), txt,
179185
(void *)SETTINGS_MAIN_MENU_SLEEP_TIMEOUT);
180186

fw/application/src/app/settings/scene/settings_scene_sleep_timeout.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ enum settings_sleep_timeout_menu_t {
1414
SETTINGS_SLEEP_TIMEOUT_MENU_1MIN,
1515
SETTINGS_SLEEP_TIMEOUT_MENU_2MIN,
1616
SETTINGS_SLEEP_TIMEOUT_MENU_3MIN,
17+
SETTINGS_SLEEP_TIMEOUT_MENU_OFF,
1718
SETTINGS_SLEEP_TIMEOUT_MENU_EXIT
1819
};
1920

@@ -52,13 +53,19 @@ static void settings_scene_sleep_timeout_list_view_on_selected(mui_list_view_eve
5253
p_settings->sleep_timeout_sec = 180;
5354
nrf_pwr_mgmt_set_timeout(180);
5455
break;
56+
57+
case SETTINGS_SLEEP_TIMEOUT_MENU_OFF:
58+
p_settings->sleep_timeout_sec = 0;
59+
nrf_pwr_mgmt_set_timeout(0);
60+
break;
5561
}
5662
mui_scene_dispatcher_previous_scene(app->p_scene_dispatcher);
5763
}
5864

5965
void settings_scene_sleep_timeout_on_enter(void *user_data) {
6066

6167
app_settings_t *app = user_data;
68+
mui_list_view_add_item(app->p_list_view, 0xe105, getLangString(_L_OFF), (void *)SETTINGS_SLEEP_TIMEOUT_MENU_OFF);
6269
mui_list_view_add_item(app->p_list_view, 0xe105, getLangString(_L_15S), (void *)SETTINGS_SLEEP_TIMEOUT_MENU_15S);
6370
mui_list_view_add_item(app->p_list_view, 0xe105, getLangString(_L_30S), (void *)SETTINGS_SLEEP_TIMEOUT_MENU_30S);
6471
mui_list_view_add_item(app->p_list_view, 0xe105, getLangString(_L_45S), (void *)SETTINGS_SLEEP_TIMEOUT_MENU_45S);

fw/application/src/mod/settings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ settings_data_t m_settings_data = {0};
4040
}
4141

4242
static void validate_settings() {
43-
if (m_settings_data.sleep_timeout_sec == 0 || m_settings_data.sleep_timeout_sec > 180) {
43+
if (m_settings_data.sleep_timeout_sec > 180) {
4444
m_settings_data.sleep_timeout_sec = 30;
4545
}
4646

fw/application/src/mui/mui_anim.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,13 @@ static void mui_anim_tick_handler() {
155155
p_anim->run_cnt = 0;
156156
}else {
157157
// reached end of animation
158+
if(p_anim->current_value != p_anim->end_value){
159+
p_anim->current_value = p_anim->end_value;
160+
p_anim->exec_cb(p_anim->var, p_anim->end_value);
161+
mui_update_required = true;
162+
NRF_LOG_INFO("ANIM FIX");
163+
}
164+
158165
mui_anim_ptr_array_remove(m_anim_ptr_array, it);
159166
}
160167
}

0 commit comments

Comments
 (0)