beltex / SMCKit

Apple SMC library & tool
https://beltex.github.io/SMCKit
MIT License
475 stars 55 forks source link

Merge perfaram/master into beltex/swift2 #21

Closed perfaram closed 9 years ago

perfaram commented 9 years ago

Fixes #17 and follows #20

beltex commented 9 years ago

Hi @perfaram!

Thanks for the pull request, its much appreciated, and the first of the project too! :)

This is neat work, but I wanted to take a bit of a different approach. While the underlying mechanism would be using the index selector, wanted to stick to primarily temperature keys only for now. So something like unknownTemperatureKeys() -> [String]. Possibly a allKeys() -> [String] as well, but only returning the FourCC. In addition, I wanted to get some refactoring in first on the Swift 2.0 branch.

Thus, I will not be merging this. However, I’ll note some feedback nonetheless for future reference.

perfaram commented 9 years ago

So, thanks for having looked over the modifications even if you didn't mean to merge. Thus, thanks also for the tips. One more thing : I'll fix some things in my repo and then keep it up-to-date with yours, so that whenever you want to start support for non-temp keys, there will be pieces of code ready (such as value decoding).