mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +00:00
touch: Reinitialize up to 3 times if failed
This commit is contained in:
parent
9af4c717a8
commit
da149c296f
1 changed files with 10 additions and 1 deletions
|
@ -373,7 +373,16 @@ int touch_power_on()
|
||||||
return touch_execute_autotune();
|
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()
|
void touch_power_off()
|
||||||
|
|
Loading…
Reference in a new issue