mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 16:53:33 +08:00
aerofc: Fixes for init
This commit is contained in:
committed by
Lorenz Meier
parent
15c75ebb40
commit
893714dc6a
@@ -2255,6 +2255,10 @@ PX4FMU::write(file *filp, const char *buffer, size_t len)
|
||||
unsigned count = len / 2;
|
||||
uint16_t values[8];
|
||||
|
||||
#if BOARD_HAS_PWM == 0
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
if (count > BOARD_HAS_PWM) {
|
||||
// we have at most BOARD_HAS_PWM outputs
|
||||
count = BOARD_HAS_PWM;
|
||||
|
||||
Reference in New Issue
Block a user