From 054a549daeb0b65bdd16614b371f2fb5aeb926e7 Mon Sep 17 00:00:00 2001 From: alexklimaj Date: Fri, 11 Nov 2022 12:58:36 -0700 Subject: [PATCH] Move uavcan start to end of rcS to prevent sd card read lock --- ROMFS/px4fmu_common/init.d/rcS | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 956c05491a..b748f90397 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -264,23 +264,6 @@ else . $FCONFIG fi - # - # Check if UAVCAN is enabled, default to it for ESCs. - # - if param greater -s UAVCAN_ENABLE 0 - then - # Start core UAVCAN module. - if ! uavcan start - then - tune_control play error - fi - else - if param greater -s CYPHAL_ENABLE 0 - then - cyphal start - fi - fi - # # Start IO for PWM output or RC input if enabled # @@ -527,6 +510,23 @@ else fi unset BOARD_BOOTLOADER_UPGRADE + # + # Check if UAVCAN is enabled, default to it for ESCs. + # + if param greater -s UAVCAN_ENABLE 0 + then + # Start core UAVCAN module. + if ! uavcan start + then + tune_control play error + fi + else + if param greater -s CYPHAL_ENABLE 0 + then + cyphal start + fi + fi + # # End of autostart. #