From 347644a8f968614d9f39a199b0f02002c9cb0b05 Mon Sep 17 00:00:00 2001 From: lwqcz <39486334+lwqcz@users.noreply.github.com> Date: Sun, 17 Feb 2019 15:33:00 +0100 Subject: [PATCH] Update to get correct CPU temp Update to get correct CPU temperature reading on Pine64 with sunxi64 based kernel. As it gives temperature multiplied by 1000 and this value is integer instead of float. Just a minor change. --- dietpi/func/dietpi-globals | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dietpi/func/dietpi-globals b/dietpi/func/dietpi-globals index 5711aacc20..02b437c01c 100644 --- a/dietpi/func/dietpi-globals +++ b/dietpi/func/dietpi-globals @@ -1922,11 +1922,11 @@ $print_logfile_info fi # - Boards that provide 2 digit output - # Pine + # Pine (when using sunxi64 kernel thermal_zone gives 1000*temp_value) # NanoPi M2 # H3 3.x # H2+ 3.x - if (( $G_HW_MODEL == 40 || + if (( ($G_HW_MODEL == 40 && $(uname -r | awk -F '-' '{ print $2 }') != 'sunxi64') || $G_HW_MODEL == 61 || ( $G_HW_CPUID == 1 && $(uname -r | grep -ci -m1 '^3.') ) || ( $G_HW_MODEL == 32 && $(uname -r | grep -ci -m1 '^3.') ) )); then