This commit is contained in:
Nick Chan committed 2023-01-29 13:16:12 +08:00
1 parent 516e78e1f9
commit 7fd5882c95
4 files changed
+33 -8

No files matched your search

+4
View File
@@ -81,7 +81,9 @@ int build_checks() {
}
bool dfuhelper_only = false, pongo_exit = false, start_from_pongo = false, palerain_version = false;
#ifdef DEV_BUILD
bool use_tui = false;
#endif
int palera1n(int argc, char *argv[]) {
int ret = 0;
@@ -91,11 +93,13 @@ int palera1n(int argc, char *argv[]) {
if (palerain_version) goto normal_exit;
if (start_from_pongo == true)
goto pongo;
#ifdef DEV_BUILD
if (use_tui) {
ret = tui();
if (ret) goto cleanup;
else goto normal_exit;
}
#endif
LOG(LOG_INFO, "Waiting for devices");
do_pongo_sleep = 1;
pthread_t dfuhelper_thread;