mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
ifdefs
This commit is contained in:
1 parent
516e78e1f9
commit
7fd5882c95
4 files changed
+33
-8
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user