Merge pull request #212 from ksankark/patch-1

Update irsend.lua
This commit is contained in:
zeroday 2015-02-13 15:15:36 +08:00
commit 2e2742c27a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ do
pulse(pin, NEC_HDR_MARK) pulse(pin, NEC_HDR_MARK)
waitus(NEC_HDR_SPACE) waitus(NEC_HDR_SPACE)
-- sequence, lsb first -- sequence, lsb first
for i = 0, 31 do for i = 31, 0, -1 do
pulse(pin, NEC_BIT_MARK) pulse(pin, NEC_BIT_MARK)
waitus(isset(code, i) and NEC_ONE_SPACE or NEC_ZERO_SPACE) waitus(isset(code, i) and NEC_ONE_SPACE or NEC_ZERO_SPACE)
end end