mirror of
https://github.com/kidoman/embd
synced 2025-07-04 20:37:46 +02:00
make names more idiomatic, remove redundant mutex lock
This commit is contained in:
parent
0c25e20721
commit
95e4b68b74
2 changed files with 13 additions and 42 deletions
|
@ -42,7 +42,7 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
if err := therm.SetWindowTempLower(TempFToC(-40)); err != nil {
|
||||
if err := therm.SetWindowTempLower(TempFToC(32)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
lowerTemp, err := therm.WindowTempLower()
|
||||
|
@ -51,7 +51,7 @@ func main() {
|
|||
}
|
||||
fmt.Printf("Lower Temp Limit set to: %fC\n", lowerTemp)
|
||||
|
||||
if err := therm.SetWindowTempUpper(TempFToC(80)); err != nil {
|
||||
if err := therm.SetWindowTempUpper(TempFToC(75)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
upperTemp, _ := therm.WindowTempUpper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue