[B]Fix bug,when pps single is conneted ,could not receive lidar point data

This commit is contained in:
Livox-SDK
2019-03-01 19:31:37 +08:00
parent 98ab612ce6
commit 376cc63afb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ void OnDeviceChange(const DeviceInfo *info, DeviceEvent type) {
printf("Device State error_code %d\n", devices[handle].info.status.status_code);
printf("Device State working state %d\n", devices[handle].info.state);
printf("Device feature %d\n", devices[handle].info.feature);
if (devices[handle].info.state == kLidarStateNormal && devices[handle].info.status.status_code == 0) {
if (devices[handle].info.state == kLidarStateNormal) {
if (devices[handle].info.type == kDeviceTypeHub) {
HubStartSampling(OnSampleCallback, NULL);
} else {
+1 -1
View File
@@ -125,7 +125,7 @@ void OnDeviceChange(const DeviceInfo *info, DeviceEvent type) {
printf("Device State error_code %d\n", devices[handle].info.status.status_code);
printf("Device State working state %d\n", devices[handle].info.state);
printf("Device feature %d\n", devices[handle].info.feature);
if (devices[handle].info.state == kLidarStateNormal && devices[handle].info.status.status_code == 0) {
if (devices[handle].info.state == kLidarStateNormal) {
if (devices[handle].info.type == kDeviceTypeHub) {
HubStartSampling(OnSampleCallback, NULL);
} else {