mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-10 03:32:49 +00:00
Fix coding error in send loops (specify bit size of literal)
This commit is contained in:
@@ -34,7 +34,7 @@ void IRsend::sendWhynter (unsigned long data, int nbits)
|
||||
space(WHYNTER_HDR_SPACE);
|
||||
|
||||
// Data
|
||||
for (unsigned long mask = 1 << (nbits - 1); mask; mask >>= 1) {
|
||||
for (unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
|
||||
if (data & mask) {
|
||||
mark(WHYNTER_ONE_MARK);
|
||||
space(WHYNTER_ONE_SPACE);
|
||||
|
||||
Reference in New Issue
Block a user