mirror of
https://github.com/kidoman/embd
synced 2025-07-01 19:18:08 +02:00
Dont panic due to potential issues (especially in light of error #24)
Signed-off-by: npotts <npotts@users.noreply.github.com>
This commit is contained in:
parent
24e96ba433
commit
90b7ee68d8
@ -41,7 +41,7 @@ func main() {
|
|||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
val, err := adc.AnalogValueAt(0)
|
val, err := adc.AnalogValueAt(0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
fmt.Println("Error: ", err)
|
||||||
}
|
}
|
||||||
fmt.Printf("analog value is: %v\n", val)
|
fmt.Printf("analog value is: %v\n", val)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user