Commit 93892a8e authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Don't fail so hard.

parent 095295d4
Pipeline #1229 passed with stage
in 1 minute and 20 seconds
......@@ -36,21 +36,18 @@ func main() {
t, err = gc.GetTime()
if err != nil {
fmt.Printf("Failed: '%s'\n", err)
return
}
fmt.Printf("Time: %s\n", t)
cpm, err = gc.GetCPM()
if err != nil {
fmt.Printf("CPM failed: '%s'\n", err)
return
}
fmt.Printf("CPM: %d\n", cpm)
cps, err = gc.GetCPS()
if err != nil {
fmt.Printf("CPS failed: '%s'\n", err)
return
}
fmt.Printf("CPS: %d\n", cps)
......@@ -61,14 +58,12 @@ func main() {
volts, err = gc.Volts()
if err != nil {
fmt.Printf("Volts failed: '%s'\n", err)
return
}
fmt.Printf("Volts: %d\n", volts)
temp, err = gc.GetTemp()
if err != nil {
fmt.Printf("Temp failed: '%s'\n", err)
return
}
fmt.Printf("Temp: %g\n", temp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment