diff --git a/lua_examples/irsend.lua b/lua_examples/irsend.lua index 6469a4c0..ed1cb98b 100644 --- a/lua_examples/irsend.lua +++ b/lua_examples/irsend.lua @@ -57,7 +57,7 @@ do pulse(pin, NEC_HDR_MARK) waitus(NEC_HDR_SPACE) -- sequence, lsb first - for i = 0, 31 do + for i = 31, 0, -1 do pulse(pin, NEC_BIT_MARK) waitus(isset(code, i) and NEC_ONE_SPACE or NEC_ZERO_SPACE) end