dkorunic / iSMC

Apple SMC CLI tool that can decode and display temperature, fans, battery, power, voltage and current information
GNU General Public License v3.0
122 stars 13 forks source link

Type error runnign iSMC fans #2

Closed jason-costello closed 4 years ago

jason-costello commented 4 years ago

Darwin 18.7.0 Darwin Kernel Version 18.7.0: Sun Dec 1 18:59:03 PST 2019

Mojave 10.14.6 2018 15" MacBook Pro

iSMC fans

Fans:
ERRO[0000] unable to get SMC key F0Sf: unable to convert to float32 type "ui16", bytes [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] to float32 
 DESCRIPTION                KEY   VALUE     TYPE 
                 Fan Count  FNum         2  ui8  
 Fan 1 Current Speed        F0Ac  2438 rpm  flt  
 Fan 1 Minimal Speed        F0Mn  2160 rpm  flt  
 Fan 1 Maximum Speed        F0Mx  5927 rpm  flt  
dkorunic commented 4 years ago

Thanks @blujio , it looks like they decided to encode Fan 1 Safe Speed key as uint16 type instead of the usual flt type. I'll add code to handle this in the next release.

dkorunic commented 4 years ago

Should be triaged with e821fdc913af938e9cf65261a351fb0636973b16 and ready to test in release v0.2.1. Please test and report back if possible, @blujio

dkorunic commented 4 years ago

I'll assume this has been fixed, please reopen an issue if the problem still persists.