Browse Source

AP_HAL_Linux: use NSIG instead of a hardcoded number in RCInput_RPI

master
Staroselskii Georgii 9 years ago committed by Andrew Tridgell
parent
commit
5e8edcb1db
  1. 2
      libraries/AP_HAL_Linux/RCInput_RPI.cpp

2
libraries/AP_HAL_Linux/RCInput_RPI.cpp

@ -376,7 +376,7 @@ void RCInput_RPI::init_DMA() @@ -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));

Loading…
Cancel
Save