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:
npotts 2016-01-10 00:50:15 -07:00
parent 24e96ba433
commit 90b7ee68d8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}