aerofc: Fixes for init

This commit is contained in:
James Goppert
2016-11-28 09:21:12 +01:00
committed by Lorenz Meier
parent 15c75ebb40
commit 893714dc6a
8 changed files with 103 additions and 16 deletions
+4
View File
@@ -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;