Skip to content

Commit

Permalink
Merge pull request #118 from Mike-Woolley/master
Browse files Browse the repository at this point in the history
Fixed build error using Xcode 12 and Menu Bar formatting on Big Sur.
  • Loading branch information
hholtmann authored May 17, 2021
2 parents 939f865 + 0edcda1 commit 442cc1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Classes/FanControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ -(void) readFanData:(id)caller{
[paragraphStyle setAlignment:NSLeftTextAlignment];
[s_status addAttribute:NSFontAttributeName value:[NSFont fontWithName:@"Lucida Grande" size:fsize] range:NSMakeRange(0,[s_status length])];
[s_status addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0,[s_status length])];
if (menuBarSetting == 0)
[s_status addAttribute:NSBaselineOffsetAttributeName value:[NSNumber numberWithFloat: -6] range:NSMakeRange(0, [s_status length])];

if (setColor) [s_status addAttribute:NSForegroundColorAttributeName value:menuColor range:NSMakeRange(0,[s_status length])];

Expand Down
2 changes: 1 addition & 1 deletion smc-command/smc.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ typedef struct {

typedef unsigned char SMCBytes_t[32];

UInt8 fannum[] = "0123456789ABCDEFGHIJ";
static UInt8 fannum[] = "0123456789ABCDEFGHIJ";

typedef struct {
UInt32 key;
Expand Down

0 comments on commit 442cc1e

Please sign in to comment.