From 5e8edcb1db5d4264bea0f96f20eb6679b2512df3 Mon Sep 17 00:00:00 2001 From: Staroselskii Georgii Date: Wed, 13 Jul 2016 16:39:31 +0300 Subject: [PATCH] AP_HAL_Linux: use NSIG instead of a hardcoded number in RCInput_RPI --- libraries/AP_HAL_Linux/RCInput_RPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/RCInput_RPI.cpp b/libraries/AP_HAL_Linux/RCInput_RPI.cpp index 5d82f1c411..b8178fc495 100644 --- a/libraries/AP_HAL_Linux/RCInput_RPI.cpp +++ b/libraries/AP_HAL_Linux/RCInput_RPI.cpp @@ -376,7 +376,7 @@ void RCInput_RPI::init_DMA() //We must stop DMA when the process is killed void RCInput_RPI::set_sigaction() { - for (int i = 0; i < 64; i++) { + for (int i = 0; i < NSIG; i++) { //catch all signals (like ctrl+c, ctrl+z, ...) to ensure DMA is disabled struct sigaction sa; memset(&sa, 0, sizeof(sa));