🔨 Pins Debugging fix and cleanup (#27494)

* 🧑‍💻 Ignore Aider additions
* 🔨 Pins Debugging fix and cleanup
* 🔧 Auto-assign UART Rx based on Tx
This commit is contained in:
Scott Lahteine
2024-10-27 14:56:27 -05:00
committed by GitHub
parent d2bda128ab
commit b4a3e29fb6
35 changed files with 754 additions and 383 deletions
+7 -5
View File
@@ -71,11 +71,13 @@ inline void toggle_pins() {
else {
hal.watchdog_refresh();
printPinStateExt(pin, ignore_protection, true, F("Pulsing "));
#ifdef __STM32F1__
const auto prior_mode = _GET_MODE(i);
#else
const bool prior_mode = getValidPinMode(pin);
#endif
const auto prior_mode = (
#ifdef __STM32F1__
_GET_MODE(i)
#else
getValidPinMode(pin)
#endif
);
#if AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
if (pin == TEENSY_E2) {
SET_OUTPUT(TEENSY_E2);