Skip to content

Commit acfe0ec

Browse files
author
Daniel Borca
committed
default SMC temperature
1 parent 93d9a25 commit acfe0ec

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SMCSense 1.0
1+
# SMCSense 1.1
22

33
No bells and whistles SMC Monitor. No graphs, no history, no network, no disk, no overhead.
44

SMCSense/AppDelegate.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification
5151
button = self.tButton = [NSButton checkboxWithTitle:@"Temp" target:self action:@selector(doSomething:)];
5252
button.frame = NSMakeRect(20, 0, 60, 20);
5353
button.allowsMixedState = YES;
54-
button.state = NSControlStateValueMixed;
54+
button.state = NSControlStateValueOff;
5555
[view addSubview:button];
5656

5757
button = self.fButton = [NSButton checkboxWithTitle:@"Fan" target:self action:@selector(doSomething:)];
@@ -87,13 +87,13 @@ - (void)updateStatusItemMenu:(id)sender
8787
[menu removeItemAtIndex:i];
8888
}
8989

90-
if (self.tButton.state != NSControlStateValueOn) {
90+
if (self.tButton.state == NSControlStateValueMixed) {
9191
values = [XRGAppleSiliconSensorMiner sensorData];
92-
}
93-
if (values == nil) {
94-
if (self.tButton.state == NSControlStateValueMixed) {
92+
if (values == nil) {
9593
self.tButton.state = NSControlStateValueOn;
9694
}
95+
}
96+
if (values == nil) {
9797
// maybe switch to https://github.com/hholtmann/smcFanControl.git
9898
values = [self.smcSensors temperatureValuesIncludingUnknown:showUnknownSensors];
9999
}

SMCSense/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>1.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)