SMCWrapper icon indicating copy to clipboard operation
SMCWrapper copied to clipboard

A clean and documented OOP wrapper around the AppleSMC IOService on Mac OS X.

Results 7 SMCWrapper issues
Sort by recently updated
recently updated
newest added

From SMCWrapper.h: ``` typedef struct SMCKeyData_vers_t { char major; char minor; char build; char reserved[1]; UInt16 release; } SMCKeyData_vers_t; typedef struct { UInt16 version; UInt16 length; UInt32 cpuPLimit; UInt32 gpuPLimit;...

Added it to SMCWrapper.m, below the #include of smc.h: ``` #include "smc.h" #import "SMCWrapper.h" ```

Was "self = [self init];" changed it to "self = [SMCWrapper alloc];" and it works fine. ``` -(id) init { self = [SMCWrapper alloc]; ```

Was "withSize:dataType" which makes it access memory outside of bounds. I fixed by changing the it to "withSize:val.dataSize". ``` [self stringRepresentationForBytes:val.bytes withSize:val.dataSize ofType:val.dataType inBuffer:&cStr[0]]; ```

List : - Cleaned code (by removing smc.h and transferring missing typedefs into SMCWrapper.h, by wiping useless macros, by reordering typedefs, by having all includes in the same place -...

### fmorrow/SMCWrapper now has a Chat Room on Gitter @fmorrow has just created a chat room. You can visit it here: [https://gitter.im/fmorrow/SMCWrapper](https://gitter.im/fmorrow/SMCWrapper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&content=body_link). This pull-request adds this badge to your README.md:...

At the moment is a boolean value is returned from each call to a SMCWrapper function. Upon failure however, a simple false value doesn't provide any insight as to the...

enhancement