summaryrefslogtreecommitdiffstats
path: root/ape/main.c
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2020-07-18 16:05:44 -0600
committerGitHub <noreply@github.com>2020-07-18 16:05:44 -0600
commit9fa97cc0e28e438f4f9fb10f311185dc6a18e674 (patch)
treeb6207419e52a3be3e83bfef149add9ef3da1c229 /ape/main.c
parentfb75521c041370e045eb1812aa257d5ebd2ffd32 (diff)
downloadbcm5719-ortega-9fa97cc0e28e438f4f9fb10f311185dc6a18e674.tar.gz
bcm5719-ortega-9fa97cc0e28e438f4f9fb10f311185dc6a18e674.zip
debug: Fix ape console initialization (#93)
Diffstat (limited to 'ape/main.c')
-rw-r--r--ape/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ape/main.c b/ape/main.c
index 6fecba0..d67890b 100644
--- a/ape/main.c
+++ b/ape/main.c
@@ -337,7 +337,10 @@ bool handle_reset(void)
void __attribute__((noreturn)) __start()
{
bool full_init = handle_reset();
- full_init = full_init || reset_ape_console();
+ if (reset_ape_console())
+ {
+ full_init = true;
+ }
printf("APE v" STRINGIFY(VERSION_MAJOR) "." STRINGIFY(VERSION_MINOR) "." STRINGIFY(VERSION_PATCH) " NCSI Port " STRINGIFY(NETWORK_PORT) "\n");
gPort = Network_getPort(NETWORK_PORT);
OpenPOWER on IntegriCloud