Fix some serial echos of pin states

This commit is contained in:
Scott Lahteine
2018-12-09 02:32:25 -06:00
parent f6321f878a
commit 6cf8d40f41
2 changed files with 31 additions and 31 deletions

View File

@ -140,11 +140,11 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
if (pin == 46 || pin == 47) {
if (pin == 46) {
print_input_or_output(GET_OUTPUT(46));
SERIAL_ECHO(READ(46));
SERIAL_CHAR('0' + READ(46));
}
else if (pin == 47) {
print_input_or_output(GET_OUTPUT(47));
SERIAL_ECHO(READ(47));
SERIAL_CHAR('0' + READ(47));
}
}
else
@ -196,11 +196,11 @@ inline void report_pin_state_extended(pin_t pin, bool ignore, bool extended = fa
SERIAL_ECHO_SP(12);
if (pin == 46) {
print_input_or_output(GET_OUTPUT(46));
SERIAL_ECHO(READ(46));
SERIAL_CHAR('0' + READ(46));
}
else {
print_input_or_output(GET_OUTPUT(47));
SERIAL_ECHO(READ(47));
SERIAL_CHAR('0' + READ(47));
}
}
else