From 5a88f7bc062a65e8762534bcaa25580417adb83a Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 16 Jan 2022 01:37:26 +0200 Subject: [PATCH] nyx: info: highlight battery temp info if cold/hot --- nyx/nyx_gui/frontend/gui_info.c | 8 ++++---- nyx/nyx_gui/nyx.c | 6 ------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/nyx/nyx_gui/frontend/gui_info.c b/nyx/nyx_gui/frontend/gui_info.c index 1779a55..236cdc7 100644 --- a/nyx/nyx_gui/frontend/gui_info.c +++ b/nyx/nyx_gui/frontend/gui_info.c @@ -2175,11 +2175,11 @@ static lv_res_t _create_window_battery_status(lv_obj_t *btn) i2c_recv_byte(I2C_5, MAX77621_CPU_I2C_ADDR, MAX77621_CHIPID1_REG)); break; case 1: - s_printf(txt_buf + strlen(txt_buf), "max77812-2 v%d", // High power. 2 Outputs, phases 3 1. + s_printf(txt_buf + strlen(txt_buf), "max77812-2 v%d", // High power GPU. 2 Outputs, phases 3 1. i2c_recv_byte(I2C_5, MAX77812_PHASE31_CPU_I2C_ADDR, MAX77812_REG_VERSION) & 7); break; case 2: - s_printf(txt_buf + strlen(txt_buf), "max77812-3 v%d.0", // Low power. 3 Outputs, phases 2 1 1. + s_printf(txt_buf + strlen(txt_buf), "max77812-3 v%d.0", // Low power GPU. 3 Outputs, phases 2 1 1. i2c_recv_byte(I2C_5, MAX77812_PHASE211_CPU_I2C_ADDR, MAX77812_REG_VERSION) & 7); break; } @@ -2265,10 +2265,10 @@ static lv_res_t _create_window_battery_status(lv_obj_t *btn) strcat(txt_buf, "Cool"); break; case 5: - strcat(txt_buf, "Cold"); + strcat(txt_buf, "#FF8000 Cold#"); break; case 6: - strcat(txt_buf, "Hot"); + strcat(txt_buf, "#FF8000 Hot#"); break; default: s_printf(txt_buf + strlen(txt_buf), "Unknown (%d)", value); diff --git a/nyx/nyx_gui/nyx.c b/nyx/nyx_gui/nyx.c index 2133676..f8e3e30 100644 --- a/nyx/nyx_gui/nyx.c +++ b/nyx/nyx_gui/nyx.c @@ -413,12 +413,6 @@ void nyx_init_load_res() sd_unmount(); } -#if (LV_LOG_PRINTF == 1) - #include - #include - #include -#endif - void ipl_main() { //Tegra/Horizon configuration goes to 0x80000000+, package2 goes to 0xA9800000, we place our heap in between.