Skip to content
Snippets Groups Projects
Commit 9e9c62d2 authored by Holger Steinhaus's avatar Holger Steinhaus Committed by Andrew Tridgell
Browse files

HAL_PX4: work-around for periodic enable_ch() calls

parent e5549c90
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,9 @@ void PX4RCOutput::enable_ch(uint8_t ch)
_init_alt_channels();
}
_enabled_channels |= (1U<<ch);
_period[ch] = 0;
if (_period[ch] == PWM_IGNORE_THIS_CHANNEL) {
_period[ch] = 0;
}
}
void PX4RCOutput::disable_ch(uint8_t ch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment