diff --git a/ion/src/device/usb/flasher.cpp b/ion/src/device/usb/flasher.cpp index a8819f8d7..71cebf261 100644 --- a/ion/src/device/usb/flasher.cpp +++ b/ion/src/device/usb/flasher.cpp @@ -6,7 +6,7 @@ void ion_main(int argc, char * argv[]) { Ion::Display::pushRectUniform(KDRect(0,0,Ion::Display::Width,Ion::Display::Height), KDColor::RGB24(0xFFFF00)); while (true) { Ion::USB::enable(); - while (!OTG.GINTSTS()->getENUMDNE()) { + while (!Ion::USB::isEnumerated()) { } Ion::USB::Device::Calculator::PollAndReset(false); }