From 0b8434777164caefd3781552de74440c03134f8a Mon Sep 17 00:00:00 2001
From: Angel Santamaria-Navarro <asantamaria@iri.upc.edu>
Date: Wed, 14 Dec 2016 15:10:53 +0100
Subject: [PATCH] to robot. added delay at writting

---
 src/lidar_lite.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/lidar_lite.cpp b/src/lidar_lite.cpp
index d088e88..d2898ce 100644
--- a/src/lidar_lite.cpp
+++ b/src/lidar_lite.cpp
@@ -211,10 +211,8 @@ CLidarLite::read(unsigned char addr, int len)
       addr); // See header file for a description of this functionality.
 
   // Read STATUS. Repeat until bit 0 (LSB) goes low.
-  // wait_busy();
-  // NOTE: Commented because using this USB adapter the following write actions
-  // are slower than usual busy time.
-
+  wait_busy();
+  
   unsigned char data[len];
   try {
     this->adapter_->write(DEVICE_ID, &addr, 1);
-- 
GitLab