From e99900e8d34fdec7a8230dde7044907903f50045 Mon Sep 17 00:00:00 2001
From: Angel Santamaria-Navarro <asantamaria@iri.upc.edu>
Date: Wed, 30 Nov 2016 10:10:38 +0100
Subject: [PATCH] fixed warning: overflow in implicit constant conversion
 [-Woverflow]

---
 src/lidar_lite.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lidar_lite.cpp b/src/lidar_lite.cpp
index 3fa7b3b..d088e88 100644
--- a/src/lidar_lite.cpp
+++ b/src/lidar_lite.cpp
@@ -138,7 +138,7 @@ CLidarLite::get_range(bool biasCorrection)
   }
 
   // Read two bytes from register 0x8f and save
-  int range = NAN;
+  int range = 0;
   range = read(FULL_DELAY_HIGH, 2);
 
   return range;
-- 
GitLab