Explicitly silence some errors
This commit is contained in:
parent
5347a56801
commit
28b96b65ea
|
@ -66,7 +66,7 @@ func FindDeviceByAddress(address string) bluetooth.ScanResult {
|
|||
|
||||
err = adapter.Scan(func(adapter *bluetooth.Adapter, result bluetooth.ScanResult) {
|
||||
if result.Address.String() == address {
|
||||
adapter.StopScan()
|
||||
_ = adapter.StopScan()
|
||||
ch <- result
|
||||
}
|
||||
})
|
||||
|
@ -112,5 +112,5 @@ func Send(address, text string) {
|
|||
log.Error("Could not send: ", err)
|
||||
}
|
||||
|
||||
device.Disconnect()
|
||||
_ = device.Disconnect()
|
||||
}
|
||||
|
|
|
@ -22,6 +22,6 @@ var sendCmd = &cobra.Command{
|
|||
|
||||
func init() {
|
||||
sendCmd.Flags().StringVar(&address, "device", "", "ble device address")
|
||||
sendCmd.MarkFlagRequired("device")
|
||||
_ = sendCmd.MarkFlagRequired("device")
|
||||
rootCmd.AddCommand(sendCmd)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue