Skip to content

Commit

Permalink
minor cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lvs1974 committed Feb 21, 2022
1 parent 5bcaff3 commit 632fec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sensors/SMCDellSensors/SMIMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ bool SMIMonitor::findFanSensors() {
{
state.fanInfo[fanCount].index = i;
state.fanInfo[fanCount].status = rc;
state.fanInfo[fanCount].minSpeed = i8k_get_fan_nominal_speed(i, 1);
state.fanInfo[fanCount].maxSpeed = i8k_get_fan_nominal_speed(i, 2);
state.fanInfo[fanCount].minSpeed = i8k_get_fan_nominal_speed(i, I8K_FAN_LOW);
state.fanInfo[fanCount].maxSpeed = i8k_get_fan_nominal_speed(i, I8K_FAN_HIGH);
rc = i8k_get_fan_speed(i, true);
if (rc >= 0)
state.fanInfo[i].speed = rc;
Expand Down Expand Up @@ -461,7 +461,7 @@ void SMIMonitor::staticUpdateThreadEntry(thread_call_param_t param0, thread_call
}

bool success = true;
while (1) {
while (true) {

IOReturn result = that->bindCurrentThreadToCpu0();
if (result != KERN_SUCCESS) {
Expand Down Expand Up @@ -509,7 +509,7 @@ void SMIMonitor::updateSensorsLoop() {

i8k_set_fan_control_auto(); // force automatic control

while (1) {
while (true) {

bool force_access = (--force_update_counter >= 0);

Expand Down
1 change: 0 additions & 1 deletion Sensors/SMCDellSensors/SMIMonitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ class SMIMonitor : public OSObject
bool i8k_get_dell_signature();
int i8k_get_temp(int sensor, bool force_access = false);
int i8k_get_temp_type(int sensor);
int i8k_get_power_status();
int i8k_get_fan_speed(int fan, bool force_access = false);
int i8k_get_fan_status(int fan);
int i8k_get_fan_type(int fan);
Expand Down

0 comments on commit 632fec6

Please sign in to comment.