diff --git a/nyx/nyx_gui/input/touch.c b/nyx/nyx_gui/input/touch.c index 09bd0b5..df1860f 100644 --- a/nyx/nyx_gui/input/touch.c +++ b/nyx/nyx_gui/input/touch.c @@ -373,7 +373,16 @@ int touch_power_on() return touch_execute_autotune(); } - return touch_init(); + // Initialize touchscreen. + u32 retries = 3; + while (retries) + { + if (touch_init()) + return 1; + retries--; + } + + return 0; } void touch_power_off()