From 1651316f72ee65ebcf094b1c6b7e3cce243bc068 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Tue, 6 Jan 2026 23:20:45 +0200 Subject: [PATCH] nyx: options: make sure var has a value in all -O# --- nyx/nyx_gui/frontend/gui_options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui_options.c b/nyx/nyx_gui/frontend/gui_options.c index bd90c9bb..b0a77094 100644 --- a/nyx/nyx_gui/frontend/gui_options.c +++ b/nyx/nyx_gui/frontend/gui_options.c @@ -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++;