diff --git a/src/Vrx_main.cpp b/src/Vrx_main.cpp index b6eadb8..3e3e43d 100644 --- a/src/Vrx_main.cpp +++ b/src/Vrx_main.cpp @@ -357,10 +357,12 @@ RF_PRE_INIT() void setup() { - // VRX module class needs to be initialised first, as it calls delay() - // for some modules that require a boot delay before being operational - vrxModule.Init(); - Serial.begin(VRX_UART_BAUD); + #if !defined(HDZERO_BACKPACK) + // Serial.begin() seems to prevent the HDZ VRX from booting + // If we're not on HDZ, init serial early for debug msgs + // Otherwise, delay it till the end of setup + Serial.begin(VRX_UART_BAUD); + #endif eeprom.Begin(); config.SetStorageProvider(&eeprom); config.Load(); @@ -390,6 +392,11 @@ void setup() { connectionState = running; } + + vrxModule.Init(); + #if defined(HDZERO_BACKPACK) + Serial.begin(VRX_UART_BAUD); + #endif DBGLN("Setup completed"); } diff --git a/targets/common.ini b/targets/common.ini index 90d8d87..4f79383 100644 --- a/targets/common.ini +++ b/targets/common.ini @@ -28,7 +28,7 @@ build_flags = board = esp12e board_build.ldscript = eagle.flash.1m144.ld upload_speed = 921600 -monitor_speed = 115200 +monitor_speed = 460800 board_build.f_cpu = 160000000L build_flags = -D PLATFORM_ESP8266=1