more debug statements for troubleshooting
This commit is contained in:
6
main.lua
6
main.lua
@@ -486,7 +486,11 @@ function PollSensors()
|
||||
end
|
||||
|
||||
function PollVelocity()
|
||||
local velSensors = peripheral.find("velocity_sensor")
|
||||
local velSensors = { peripheral.find("velocity_sensor") }
|
||||
if (Config.Debug) then
|
||||
print("DEBUG: Found "..#velSensors.." velocity sensors.")
|
||||
print("DEBUG: Velocity sensors: "..tableToString(velSensors))
|
||||
end
|
||||
|
||||
-- Velocity Sensors
|
||||
VelocityVectors = {}
|
||||
|
||||
Reference in New Issue
Block a user