Bug Fix: Failed to connect lidar when multi adapter presented with fi… #18

Merged
jingweiz2017 merged 2 commits from master into master 2019-10-31 08:57:39 +01:00
jingweiz2017 commented 2019-10-25 04:18:22 +02:00 (Migrated from github.com)

…rst one disconnected

Bug Description:
When you have more than one network adater on your compter, this part of the code is supposed to find one that is connecting and working fine and obtain its ip address for handshaking request.
However, it failed to do so when the first network adapter is not connected. Thus GetAdapterState returns false and we stopped trying on the other adapters.

Fix:
Try each adapter, if it is not working, we try the next one. Either we find one and we move onto the following process or we find none and quit.

…rst one disconnected Bug Description: When you have more than one network adater on your compter, this part of the code is supposed to find one that is connecting and working fine and obtain its ip address for handshaking request. However, it failed to do so when the first network adapter is not connected. Thus GetAdapterState returns false and we stopped trying on the other adapters. Fix: Try each adapter, if it is not working, we try the next one. Either we find one and we move onto the following process or we find none and quit.
This repo is archived. You cannot comment on pull requests.