Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
347644a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
this introduces an error, if the Kernel Release does not contain '-' (e.g. 4.14.98+):
/DietPi/dietpi/func/dietpi-globals: line 1924: ((: (1 == 40 && != sunxi64) ||
1 == 61 ||
( 0 == 1 && 0 ) ||
( 1 == 32 && 0 ) : syntax error: operand expected (error token is "!= sunxi64) ||
1 == 61 ||
( 0 == 1 && 0 ) ||
( 1 == 32 && 0 ) ")
Probably better also use grep instead of awk.
347644a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WilburWalsh
Thanks for the heads up 👍
Will send commit to fix. 🈯️ Fourdee@30768a4