mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_Linux: use NSIG instead of a hardcoded number in RCInput_RPI
This commit is contained in:
parent
d69aeb4808
commit
5e8edcb1db
@ -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…
Reference in New Issue
Block a user