trying to fix connection issues

This commit is contained in:
freqyXin 2021-05-13 19:09:39 -07:00
parent 006ffaa9b8
commit f37686d1a9

@ -132,8 +132,12 @@ func (s *Scan) Start() error {
//time.Sleep(20 * time.Millisecond)
TargetDevice, err := projVars.ScanAdapter.Connect(result.Address, bluetooth.ConnectionParams{})
//start := time.Now()
if err != nil {
log.Err(err).Msg("CONNECTION_ERROR")
}
if projVars.ConnectedToTarget == true {