mirror of https://github.com/kidoman/embd
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)
|
||||
val, err := adc.AnalogValueAt(0)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
fmt.Println("Error: ", err)
|
||||
}
|
||||
fmt.Printf("analog value is: %v\n", val)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue