Fix 24-key IR remote (#738)
This commit is contained in:
parent
0a363d5fc0
commit
cffee7bfa7
@ -90,8 +90,8 @@ void decodeIR(uint32_t code)
|
||||
// sets bright plain white
|
||||
default: return;
|
||||
}
|
||||
colorUpdated(NOTIFIER_CALL_MODE_BUTTON); //for notifier, IR is considered a button input
|
||||
}
|
||||
colorUpdated(NOTIFIER_CALL_MODE_BUTTON); //for notifier, IR is considered a button input
|
||||
//code <= 0xF70000 also invalid
|
||||
}
|
||||
|
||||
@ -358,18 +358,18 @@ void decodeIR6(uint32_t code)
|
||||
switch(lastIR6ColourIdx) {
|
||||
case 0: colorFromUint32(COLOR_RED); break;
|
||||
case 1: colorFromUint32(COLOR_REDDISH); break;
|
||||
case 2:colorFromUint32(COLOR_ORANGE); break;
|
||||
case 3:colorFromUint32(COLOR_YELLOWISH); break;
|
||||
case 4:colorFromUint32(COLOR_GREEN); break;
|
||||
case 5:colorFromUint32(COLOR_GREENISH); break;
|
||||
case 6:colorFromUint32(COLOR_TURQUOISE); break;
|
||||
case 2: colorFromUint32(COLOR_ORANGE); break;
|
||||
case 3: colorFromUint32(COLOR_YELLOWISH); break;
|
||||
case 4: colorFromUint32(COLOR_GREEN); break;
|
||||
case 5: colorFromUint32(COLOR_GREENISH); break;
|
||||
case 6: colorFromUint32(COLOR_TURQUOISE); break;
|
||||
case 7: colorFromUint32(COLOR_CYAN); break;
|
||||
case 8:colorFromUint32(COLOR_BLUE); break;
|
||||
case 9:colorFromUint32(COLOR_DEEPBLUE); break;
|
||||
case 8: colorFromUint32(COLOR_BLUE); break;
|
||||
case 9: colorFromUint32(COLOR_DEEPBLUE); break;
|
||||
case 10:colorFromUint32(COLOR_PURPLE); break;
|
||||
case 11:colorFromUint32(COLOR_PINK); break;
|
||||
case 12:colorFromUint32(COLOR_WHITE); break;
|
||||
default:break;
|
||||
default: break;
|
||||
}
|
||||
lastIR6ColourIdx++;
|
||||
if(lastIR6ColourIdx > 12) lastIR6ColourIdx = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user