Skip to content

Commit f23657d

Browse files
committed
Fixed problems with illegal pin detection.
1 parent 5eff31c commit f23657d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

IRLibProtocols/IRLibSAMD51.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,18 @@
3636
#define IR_SEND_PWM_PIN 9
3737
#if (! ( (IR_SEND_PWM_PIN==0) || (IR_SEND_PWM_PIN==1) || \
3838
((IR_SEND_PWM_PIN>=4) && (IR_SEND_PWM_PIN<=6) ) || \
39-
((IR_SEND_PWM_PIN>=9) && (IR_SEND_PWM_PIN<=6) ) || \
39+
((IR_SEND_PWM_PIN>=9) && (IR_SEND_PWM_PIN<=13) ) || \
4040
((IR_SEND_PWM_PIN>=16) && (IR_SEND_PWM_PIN<=19) ) || \
4141
(IR_SEND_PWM_PIN==21) || (IR_SEND_PWM_PIN==22) ) )
4242
#error "Unsupported output pin Adafruit Feather M4 Express"
4343
#endif
4444
#elif defined (ADAFRUIT_GRAND_CENTRAL_M4)
4545
//Settings for Adafruit Grand Central Metro M4. Default is 9.
46-
//Available 2-10, 12-14, 23-28, 30-31, 38-39, 59-61(A12-A15), 69(A3)
46+
//Available 2-10, 12-14, 18-19, 23-28, 30-31, 38-39, 59-61(A13-A15), 69(A2)
4747
#define IR_SEND_PWM_PIN 9
4848
#if (! ( ((IR_SEND_PWM_PIN>=2) && (IR_SEND_PWM_PIN<=10) ) || \
4949
((IR_SEND_PWM_PIN>=12) && (IR_SEND_PWM_PIN<=14) ) || \
50+
(IR_SEND_PWM_PIN==18) || (IR_SEND_PWM_PIN==19) || \
5051
((IR_SEND_PWM_PIN>=23) && (IR_SEND_PWM_PIN<=28) ) || \
5152
(IR_SEND_PWM_PIN==30) || (IR_SEND_PWM_PIN==31) || \
5253
(IR_SEND_PWM_PIN==38) || (IR_SEND_PWM_PIN==39) || \

0 commit comments

Comments
 (0)