[usb] Use proper function to scan registers.

Change-Id: I37f0f8ce105c7791fa8890013d672cca7dff4126
This commit is contained in:
Léa Saviot
2018-04-11 14:00:37 +02:00
parent 555ced4941
commit d87e71d847

View File

@@ -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);
}