From f00d4f0b3e0aa60a7f9c8a427e556dcac800c058 Mon Sep 17 00:00:00 2001 From: mirkix <“mirkix@gmail.com”> Date: Thu, 12 Nov 2015 20:56:50 +0100 Subject: [PATCH] AP_HAL_Linux: Improve loading firmware --- libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp b/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp index 0deefc256f..6410174b0b 100644 --- a/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp +++ b/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp @@ -51,13 +51,12 @@ void RCOutput_AioPRU::init(void* machtnicht) // Reset PRU 1 *ctrl = 0; - hal.scheduler->delay(1); // Load firmware memcpy(iram, PRUcode, sizeof(PRUcode)); // Start PRU 1 - *ctrl = 3; + *ctrl |= 2; // all outputs default to 50Hz, the top level vehicle code // overrides this when necessary