From 17ba51d7eb11243e87080d6b6a8f416ed7850ce0 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 1 May 2017 10:33:16 +0100 Subject: [PATCH] Move PortaPack IO init to earlier -- with other IO init. Was causing trouble with performing audio codec reset. --- firmware/application/main.cpp | 1 - firmware/application/portapack.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/application/main.cpp b/firmware/application/main.cpp index 05ce816e..f2a262c8 100755 --- a/firmware/application/main.cpp +++ b/firmware/application/main.cpp @@ -70,7 +70,6 @@ static void event_loop() { int main(void) { portapack::init(); - portapack::io.init(); portapack::display.init(); sdcStart(&SDCD1, nullptr); diff --git a/firmware/application/portapack.cpp b/firmware/application/portapack.cpp index 16986c17..24a0c989 100644 --- a/firmware/application/portapack.cpp +++ b/firmware/application/portapack.cpp @@ -139,6 +139,8 @@ void init() { led_rx.setup(); led_tx.setup(); + portapack::io.init(); + clock_manager.init(); clock_manager.set_reference_ppb(persistent_memory::correction_ppb()); clock_manager.run_at_full_speed();