trying to fix connection issues
This commit is contained in:
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user