[apps/hardware_tests and POST] Factorize the tests

This commit is contained in:
Léa Saviot
2019-04-26 12:02:53 +02:00
parent 204be4e7a3
commit 641484457c
9 changed files with 159 additions and 233 deletions

View File

@@ -1,5 +1,6 @@
#include "vblank_test_controller.h"
#include "../apps_container.h"
#include <apps/shared/post_and_hardware_tests.h>
using namespace Poincare;
@@ -19,6 +20,7 @@ bool VBlankTestController::handleEvent(Ion::Events::Event event) {
* test might end up in an infinite loop, in which case "VBLANK fail" keeps
* being displayed. If the test succeeds, the screen should change very
* quickly to "VBLANK OK". */
Shared::POSTAndHardwareTests::VBlankOK();
for (int i=0; i<6; i++) {
Ion::Display::waitForVBlank();
}