[B]Fix bug,when pps single is conneted ,could not receive lidar point data
This commit is contained in:
+1
-1
@@ -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 error_code %d\n", devices[handle].info.status.status_code);
|
||||||
printf("Device State working state %d\n", devices[handle].info.state);
|
printf("Device State working state %d\n", devices[handle].info.state);
|
||||||
printf("Device feature %d\n", devices[handle].info.feature);
|
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) {
|
if (devices[handle].info.type == kDeviceTypeHub) {
|
||||||
HubStartSampling(OnSampleCallback, NULL);
|
HubStartSampling(OnSampleCallback, NULL);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -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 error_code %d\n", devices[handle].info.status.status_code);
|
||||||
printf("Device State working state %d\n", devices[handle].info.state);
|
printf("Device State working state %d\n", devices[handle].info.state);
|
||||||
printf("Device feature %d\n", devices[handle].info.feature);
|
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) {
|
if (devices[handle].info.type == kDeviceTypeHub) {
|
||||||
HubStartSampling(OnSampleCallback, NULL);
|
HubStartSampling(OnSampleCallback, NULL);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user