diff --git a/src/lidar_lite.cpp b/src/lidar_lite.cpp index d2898ceba831cf4baaf3b743676c98d375c6351a..b24a4cb1a46087f5df25af8b6465776080a6a8af 100644 --- a/src/lidar_lite.cpp +++ b/src/lidar_lite.cpp @@ -216,6 +216,7 @@ CLidarLite::read(unsigned char addr, int len) unsigned char data[len]; try { this->adapter_->write(DEVICE_ID, &addr, 1); + usleep(500); // FIX: This delay should be removed when the data transfer bug is solved. this->adapter_->read(DEVICE_ID, data, len); } catch (CException& e) { throw CLidarLiteException(_HERE_, e.what());