Replace digitalPinHasPWM with HAS_TIMER (#13520)
This commit is contained in:
committed by
Scott Lahteine
parent
5a2c68e995
commit
e40636a7c1
@ -139,11 +139,11 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
|
||||
#if AVR_AT90USB1286_FAMILY //Teensy IDEs don't know about these pins so must use FASTIO
|
||||
if (pin == 46 || pin == 47) {
|
||||
if (pin == 46) {
|
||||
print_input_or_output(GET_OUTPUT(46));
|
||||
print_input_or_output(IS_OUTPUT(46));
|
||||
SERIAL_CHAR('0' + READ(46));
|
||||
}
|
||||
else if (pin == 47) {
|
||||
print_input_or_output(GET_OUTPUT(47));
|
||||
print_input_or_output(IS_OUTPUT(47));
|
||||
SERIAL_CHAR('0' + READ(47));
|
||||
}
|
||||
}
|
||||
@ -195,11 +195,11 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
|
||||
if (pin == 46 || pin == 47) {
|
||||
SERIAL_ECHO_SP(12);
|
||||
if (pin == 46) {
|
||||
print_input_or_output(GET_OUTPUT(46));
|
||||
print_input_or_output(IS_OUTPUT(46));
|
||||
SERIAL_CHAR('0' + READ(46));
|
||||
}
|
||||
else {
|
||||
print_input_or_output(GET_OUTPUT(47));
|
||||
print_input_or_output(IS_OUTPUT(47));
|
||||
SERIAL_CHAR('0' + READ(47));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user