sworisbreathing / go-ibbq

go-ble library for Inkbird wireless thermometers
Apache License 2.0
41 stars 15 forks source link

examples/datalogger/main.go:53:2: undefined: registerInterruptHandler #8

Open jbtalley98 opened 4 years ago

jbtalley98 commented 4 years ago

Admitted very green, but I don't see this function defined anywhere. Removing it (commenting out) fixes the issue.

DCRichards commented 4 years ago

@jbtalley98 you'll need to run go run ./... or go run . in the directory, rather than go run main.go, otherwise go won't parse the other files in the package. registerInterruptHandler is defined in signals.go.

sworisbreathing commented 4 years ago

Thanks for following up @DCRichards.

@jbtalley98 did that fix your issue?