Skip to content

Commit a2ca259

Browse files
committed
Add Thunderbolt sensor keys
1 parent f5bfb74 commit a2ca259

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
require (
1515
github.com/davecgh/go-spew v1.1.1 // indirect
1616
github.com/pmezard/go-difflib v1.0.0 // indirect
17-
golang.org/x/text v0.23.0 // indirect
17+
golang.org/x/text v0.26.0 // indirect
1818
gopkg.in/yaml.v3 v3.0.1 // indirect
1919
)
2020

@@ -25,5 +25,5 @@ require (
2525
github.com/rivo/uniseg v0.4.7 // indirect
2626
github.com/spf13/pflag v1.0.6 // indirect
2727
github.com/stretchr/testify v1.10.0
28-
golang.org/x/sys v0.31.0 // indirect
28+
golang.org/x/sys v0.33.0 // indirect
2929
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
2525
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
2626
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
2727
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
28-
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
29-
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
30-
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
31-
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
28+
golang.org/x/sys v0.33.0 h1:q3i8TbbEz+JRD9ywIRlyRAQbM0qF7hu24q3teo2hbuw=
29+
golang.org/x/sys v0.33.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
30+
golang.org/x/text v0.26.0 h1:P42AVeLghgTYr4+xUnTRKDMqpar+PtX7KWuNQL21L8M=
31+
golang.org/x/text v0.26.0/go.mod h1:QK15LZJUUQVJxhz7wXgxSy/CJaTFjd0G+YLonydOVQA=
3232
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
3333
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3434
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

smc/sensors.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

smc/smc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func GetFans() map[string]any {
112112
"type": smcType,
113113
}
114114

115-
for i := uint32(0); i < val; i++ {
115+
for i := range val {
116116
for _, v := range AppleFans {
117117
key := fmt.Sprintf(v.Key, i)
118118
desc := fmt.Sprintf(v.Desc, i+1)

src/power.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,5 @@ SSD:PZHD
125125
ODD(PZOD):PZOD
126126
Average Main Chipset:Pc0R
127127
Power Delivery Brightness:PDBR
128+
Thunderbolt Left:PU1R
129+
Thunderbolt Right:PU2R

src/temp.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,5 @@ Power Supply T2 Secondary Heatsink Cooked:Tp2H
228228
Power Supply T2 Secondary Heatsink Raw:Tp2h
229229
Actuator:Ts1P
230230
Synthetic Top Skin:Ts1S
231+
Thunderbolt Left:TTLD
232+
Thunderbolt Right:TTRD

0 commit comments

Comments
 (0)