Commit e99900e8 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

fixed warning: overflow in implicit constant conversion [-Woverflow]

parent b49a9567
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment