From 1c3287160e504ad608e62ef2598a39bdfb096ea6 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Thu, 5 Dec 2019 15:33:07 -0700 Subject: [PATCH] AP_Scripting: Simplify the LED_roll example --- libraries/AP_Scripting/examples/LED_roll.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Scripting/examples/LED_roll.lua b/libraries/AP_Scripting/examples/LED_roll.lua index a997c2b5a3..1f12eb4e0f 100644 --- a/libraries/AP_Scripting/examples/LED_roll.lua +++ b/libraries/AP_Scripting/examples/LED_roll.lua @@ -15,14 +15,14 @@ local num_leds = 30 local chan = SRV_Channels:find_channel(94) if not chan then - gcs:send_text(6, string.format("LEDs: channel not set")) + gcs:send_text(6, "LEDs: channel not set") return end -- find_channel returns 0 to 15, convert to 1 to 16 chan = chan + 1 -gcs:send_text(6, string.format("LEDs: chan=" .. tostring(chan))) +gcs:send_text(6, "LEDs: chan=" .. tostring(chan)) -- initialisation code serialLED:set_num_LEDs(chan, num_leds)