nyx: options: make sure var has a value in all -O#

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 10:00:26 +01:00
1 parent c200ef3f4a
commit 1651316f72
1 file changed
+2 -1
+2 -1
View File
@@ -907,6 +907,7 @@ static lv_res_t _joycon_info_dump_action(lv_obj_t * btn)
int cal_error = 0;
bool is_l_hos = false;
bool is_r_hos = false;
u32 joycon_found = 0;
bool nx_hoag = fuse_read_hw_type() == FUSE_NX_HW_TYPE_HOAG;
jc_gamepad_rpt_t *jc_pad = jc_get_bt_pairing_info(&is_l_hos, &is_r_hos);
@@ -935,7 +936,7 @@ static lv_res_t _joycon_info_dump_action(lv_obj_t * btn)
goto save_data;
// Count valid joycon.
u32 joycon_found = jc_pad->bt_conn_l.type ? 1 : 0;
joycon_found = jc_pad->bt_conn_l.type ? 1 : 0;
if (jc_pad->bt_conn_r.type)
joycon_found++;