nyx: use renamed bm92t function

This commit is contained in:
CTCaer authored and NaGa committed 2026-03-27 20:08:45 +01:00
1 parent de3a74d351
commit 2c071eb878
1 file changed
+2 -3
+2 -3
View File
@@ -2834,7 +2834,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.
@@ -2845,9 +2845,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 =