Skip to content

Commit

Permalink
Merge pull request #2563 from lwqcz/patch-1
Browse files Browse the repository at this point in the history
Update to get correct CPU temp
  • Loading branch information
Fourdee authored Feb 17, 2019
2 parents 3820a33 + 347644a commit 843f403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dietpi/func/dietpi-globals
Original file line number Diff line number Diff line change
Expand Up @@ -1914,11 +1914,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
Expand Down

0 comments on commit 843f403

Please sign in to comment.