mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-28 12:23:19 +01:00
turn into valid c99
This commit is contained in:
1 parent
a6f8181211
commit
907ac98c9c
10 files changed
+76
-71
No files matched your search
+2
-2
@@ -36,7 +36,7 @@ int dfuhelper_thr_running = false;
|
||||
|
||||
void step(int time, int time2, char *text, bool (*cond)(uint64_t), uint64_t cond_arg) {
|
||||
for (int i = time2; i < time; i++) {
|
||||
printf(CYN "\r\e[K%s (%d)" CRESET, text, time - i + time2);
|
||||
printf(CYN "\r\033[K%s (%d)" CRESET, text, time - i + time2);
|
||||
fflush(stdout);
|
||||
sleep(1);
|
||||
if (cond != NULL && cond(cond_arg)) pthread_exit(NULL);
|
||||
@@ -119,7 +119,7 @@ void* connected_recovery_mode(struct irecv_device_info* info) {
|
||||
set_ecid_wait_for_dfu(0);
|
||||
return NULL;
|
||||
}
|
||||
printf("\r\e[K");
|
||||
printf("\r\033[K");
|
||||
bool nohome = NOHOME;
|
||||
if (nohome)
|
||||
step(2, 0, "Hold volume down + side button", NULL, 0);
|
||||
|
||||
Reference in new issue
Block a user