diff --git a/ion/src/device/console.cpp b/ion/src/device/console.cpp index 3ce52a4ba..04d824589 100644 --- a/ion/src/device/console.cpp +++ b/ion/src/device/console.cpp @@ -63,6 +63,7 @@ void shutdown() { bool peerConnected() { RxPin.group().PUPDR()->setPull(RxPin.pin(), GPIO::PUPDR::Pull::Down); RxPin.group().MODER()->setMode(RxPin.pin(), GPIO::MODER::Mode::Input); + msleep(1); bool result = RxPin.group().IDR()->get(RxPin.pin()); RxPin.group().PUPDR()->setPull(RxPin.pin(), GPIO::PUPDR::Pull::None); RxPin.group().MODER()->setMode(RxPin.pin(), GPIO::MODER::Mode::AlternateFunction);