From ebe063a5233bd4d4969aac597949e3b61e8dda53 Mon Sep 17 00:00:00 2001 From: BPanther Date: Thu, 17 Aug 2023 19:13:19 +0200 Subject: [PATCH] update for mips vuuno, boxinfo: board temp added --- src/gui/dboxinfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index 5e45672ec..9cc9df27e 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -54,7 +54,7 @@ #include #include -#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) +#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) #include #endif @@ -256,7 +256,7 @@ void CDBoxInfoWidget::paint() height += mheight; // time height += mheight; // uptime height += mheight; // load -#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) +#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) height += mheight; // temp #endif int cpuload_y1 = height; @@ -442,8 +442,8 @@ void CDBoxInfoWidget::paint() str_boot_title += ": "; std::string str_up_title(g_Locale->getText(LOCALE_EXTRA_DBOXINFO_UPTIME)); str_up_title += ": "; -#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) -#if defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) +#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) +#if defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) std::string str_cputemp_title("System"/*g_Locale->getText(LOCALE_EXTRA_DBOXINFO_SYSTEMP)*/); #else std::string str_cputemp_title("CPU"/*g_Locale->getText(LOCALE_EXTRA_DBOXINFO_CPUTEMP)*/); @@ -511,10 +511,10 @@ void CDBoxInfoWidget::paint() } ypos += mheight; -#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) +#if defined (BOXMODEL_VUPLUS_ARM) || defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) // paint cpu temp char proc_cputemp[8]; -#if defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) +#if defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) proc_get("/proc/stb/sensors/temp0/value", proc_cputemp, sizeof(proc_cputemp)); #else proc_get("/sys/class/thermal/thermal_zone0/temp", proc_cputemp, sizeof(proc_cputemp)); @@ -522,7 +522,7 @@ void CDBoxInfoWidget::paint() if (atoi(proc_cputemp) > 0) { char cpu_temp[16] = { 0 }; -#if defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) +#if defined (BOXMODEL_VUDUO2) || defined (BOXMODEL_VUULTIMO) || defined (BOXMODEL_VUUNO) sprintf(cpu_temp, "%d °C", atoi(proc_cputemp)); #else sprintf(cpu_temp, "%d °C", atoi(proc_cputemp) / 1000);