Skip to content

Commit

Permalink
Merge pull request #7156 from benlye/benlye-fix-pinsdebug
Browse files Browse the repository at this point in the history
Fix #ifdef AVR_AT90USB1286_FAMILY in pinsDebug
  • Loading branch information
thinkyhead committed Jun 27, 2017
2 parents 134116b + 31514f4 commit 61d00d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Marlin/Marlin_main.cpp
Expand Up @@ -6438,7 +6438,7 @@ inline void gcode_M42() {
}
else {
report_pin_state_extended(pin, I_flag, true, "Pulsing ");
#ifdef AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
#if AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
if (pin == 46) {
SET_OUTPUT(46);
for (int16_t j = 0; j < repeat; j++) {
Expand Down
4 changes: 2 additions & 2 deletions Marlin/pinsDebug.h
Expand Up @@ -484,7 +484,7 @@ inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = f
if (pin_is_protected(pin) && !ignore)
SERIAL_ECHOPGM("protected ");
else {
#ifdef AVR_AT90USB1286_FAMILY //Teensy IDEs don't know about these pins so must use FASTIO
#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));
Expand Down Expand Up @@ -539,7 +539,7 @@ inline void report_pin_state_extended(int8_t pin, bool ignore, bool extended = f
SERIAL_ECHO_SP(8); // add padding if not an analog pin
SERIAL_ECHOPGM("<unused/unknown>");
if (extended) {
#ifdef AVR_AT90USB1286_FAMILY //Teensy IDEs don't know about these pins so must use FASTIO
#if AVR_AT90USB1286_FAMILY //Teensy IDEs don't know about these pins so must use FASTIO
if (pin == 46 || pin == 47) {
SERIAL_PROTOCOL_SP(12);
if (pin == 46) {
Expand Down

0 comments on commit 61d00d8

Please sign in to comment.