diff --git a/build/platform.blackbox.mak b/build/platform.blackbox.mak index 58e78ca17..ed9f74e64 100644 --- a/build/platform.blackbox.mak +++ b/build/platform.blackbox.mak @@ -1,3 +1,3 @@ TOOLCHAIN ?= afl -USE_LIBA ?= 1 +USE_LIBA ?= 0 EXE = bin diff --git a/ion/src/blackbox/ion.cpp b/ion/src/blackbox/ion.cpp index d1548d194..ca850f620 100644 --- a/ion/src/blackbox/ion.cpp +++ b/ion/src/blackbox/ion.cpp @@ -10,9 +10,31 @@ void Ion::Display::pushRectUniform(KDRect r, KDColor c) { void Ion::Display::pullRect(KDRect r, KDColor * pixels) { } -bool Ion::Keyboard::keyDown(Ion::Keyboard::Key key) { +bool Ion::USB::isPlugged() { return false; } void Ion::msleep(long ms) { } + +const char * Ion::serialNumber() { + return "123"; +} + +void Ion::LED::setColor(KDColor) { +} + +bool Ion::Battery::isCharging() { + return false; +} + +Ion::Battery::Charge Ion::Battery::level() { + return Charge::FULL; +} + +float Ion::Battery::voltage() { + return 0.0f; +} + +void Ion::Display::waitForVBlank() { +} diff --git a/ion/src/shared/events_stdin.cpp b/ion/src/shared/events_stdin.cpp index dd892085f..a3c11816f 100644 --- a/ion/src/shared/events_stdin.cpp +++ b/ion/src/shared/events_stdin.cpp @@ -8,7 +8,6 @@ Ion::Events::Event Ion::Events::getEvent(int * timeout) { int c = getchar(); - msleep(100); if (c == EOF) { exit(0); } else {