From d87e71d847fd73be8a6bdb2fe17acec695c08948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 11 Apr 2018 14:00:37 +0200 Subject: [PATCH] [usb] Use proper function to scan registers. Change-Id: I37f0f8ce105c7791fa8890013d672cca7dff4126 --- ion/src/device/usb/flasher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }