From cc94573dcb4e3131c5cd93b0fa2e96e82b28c943 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 12 Feb 2026 21:59:03 +0200 Subject: [PATCH] nyx: use renamed bm92t function --- nyx/nyx_gui/frontend/gui_info.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nyx/nyx_gui/frontend/gui_info.c b/nyx/nyx_gui/frontend/gui_info.c index 94a5f2a4..c587ea4b 100644 --- a/nyx/nyx_gui/frontend/gui_info.c +++ b/nyx/nyx_gui/frontend/gui_info.c @@ -2833,7 +2833,7 @@ static lv_res_t _create_window_battery_status(lv_obj_t *btn) bool inserted; u32 wattage = 0; usb_pd_objects_t usb_pd; - bm92t36_get_sink_info(&inserted, &usb_pd); + bm92t36_get_source_info(&inserted, &usb_pd); strcat(txt_buf, inserted ? "Connected" : "Disconnected"); // Select 5V is no PD contract. @@ -2844,9 +2844,8 @@ static lv_res_t _create_window_battery_status(lv_obj_t *btn) if (!usb_pd.pdo_no) strcat(txt_buf, "\nNon PD"); - // Limit to 6 profiles so it can fit. + // Show 6 profiles max so they can fit. usb_pd.pdo_no = MIN(usb_pd.pdo_no, 6); - for (u32 i = 0; i < usb_pd.pdo_no; i++) { bool selected =