fix PollVelocity empty array check
This commit is contained in:
2
main.lua
2
main.lua
@@ -487,7 +487,7 @@ function PollVelocity()
|
|||||||
-- Velocity Sensors
|
-- Velocity Sensors
|
||||||
VelocityVectors = {}
|
VelocityVectors = {}
|
||||||
|
|
||||||
if velSensors[1] == nil then -- verify array is not empty
|
if velSensors[1] ~= nil then -- verify array is not empty
|
||||||
|
|
||||||
SensorData.Velocity = {}
|
SensorData.Velocity = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user