Skip to content

Commit 632fec6

Browse files
committed
minor cosmetic fixes
1 parent 5bcaff3 commit 632fec6

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Sensors/SMCDellSensors/SMIMonitor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ bool SMIMonitor::findFanSensors() {
407407
{
408408
state.fanInfo[fanCount].index = i;
409409
state.fanInfo[fanCount].status = rc;
410-
state.fanInfo[fanCount].minSpeed = i8k_get_fan_nominal_speed(i, 1);
411-
state.fanInfo[fanCount].maxSpeed = i8k_get_fan_nominal_speed(i, 2);
410+
state.fanInfo[fanCount].minSpeed = i8k_get_fan_nominal_speed(i, I8K_FAN_LOW);
411+
state.fanInfo[fanCount].maxSpeed = i8k_get_fan_nominal_speed(i, I8K_FAN_HIGH);
412412
rc = i8k_get_fan_speed(i, true);
413413
if (rc >= 0)
414414
state.fanInfo[i].speed = rc;
@@ -461,7 +461,7 @@ void SMIMonitor::staticUpdateThreadEntry(thread_call_param_t param0, thread_call
461461
}
462462

463463
bool success = true;
464-
while (1) {
464+
while (true) {
465465

466466
IOReturn result = that->bindCurrentThreadToCpu0();
467467
if (result != KERN_SUCCESS) {
@@ -509,7 +509,7 @@ void SMIMonitor::updateSensorsLoop() {
509509

510510
i8k_set_fan_control_auto(); // force automatic control
511511

512-
while (1) {
512+
while (true) {
513513

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

Sensors/SMCDellSensors/SMIMonitor.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ class SMIMonitor : public OSObject
295295
bool i8k_get_dell_signature();
296296
int i8k_get_temp(int sensor, bool force_access = false);
297297
int i8k_get_temp_type(int sensor);
298-
int i8k_get_power_status();
299298
int i8k_get_fan_speed(int fan, bool force_access = false);
300299
int i8k_get_fan_status(int fan);
301300
int i8k_get_fan_type(int fan);

0 commit comments

Comments
 (0)