mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-03 20:12:52 +00:00
Fix coding error in send loops (specify bit size of literal)
This commit is contained in:
@@ -38,7 +38,7 @@ void IRsend::sendAiwaRCT501 (int code)
|
||||
space(AIWA_RC_T501_HDR_SPACE);
|
||||
|
||||
// Send "pre" data
|
||||
for (unsigned long mask = 1 << (26 - 1); mask; mask >>= 1) {
|
||||
for (unsigned long mask = 1UL << (26 - 1); mask; mask >>= 1) {
|
||||
mark(AIWA_RC_T501_BIT_MARK);
|
||||
if (pre & mask) space(AIWA_RC_T501_ONE_SPACE) ;
|
||||
else space(AIWA_RC_T501_ZERO_SPACE) ;
|
||||
|
||||
Reference in New Issue
Block a user