Skip to content

Commit

Permalink
Allow SMCBatteryManager to load on 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Jun 20, 2021
1 parent 30a3fa2 commit 969f1b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VirtualSMC Changelog
====================
#### v1.2.5
- Added preliminary macOS 12 support
- Added macOS 10.6 support for SMCBatteryManager

#### v1.2.4
- Added support for NCT6683D series
Expand Down
4 changes: 2 additions & 2 deletions Sensors/SMCBatteryManager/SMCSMBusController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ IOService *SMCSMBusController::probe(IOService *provider, SInt32 *score) {
return nullptr;
}

if (getKernelVersion() < KernelVersion::Lion) {
DBGLOG("sdell", "unsupported before 10.7");
if (getKernelVersion() < KernelVersion::SnowLeopard) {
DBGLOG("sdell", "unsupported before 10.6");
return nullptr;
}

Expand Down

0 comments on commit 969f1b2

Please sign in to comment.