diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-17 21:37:53 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-02-17 21:37:53 +0100 |
commit | 4219de678971bddf0ac7cf538e8847a423a98bbf (patch) | |
tree | 9c2ccbdf538e488b512f024d55c46e351f0553bc /src | |
parent | 1afa53a159ee247a1c57ca59912077c5076c3997 (diff) | |
parent | a8b3381ca9675890b0d36e98a4453ac18d19df3e (diff) | |
download | px4-firmware-4219de678971bddf0ac7cf538e8847a423a98bbf.tar.gz px4-firmware-4219de678971bddf0ac7cf538e8847a423a98bbf.tar.bz2 px4-firmware-4219de678971bddf0ac7cf538e8847a423a98bbf.zip |
Merge pull request #677 from NosDE/master
BL-Ctrl 3.0 fix
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/mkblctrl/mkblctrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/mkblctrl/mkblctrl.cpp b/src/drivers/mkblctrl/mkblctrl.cpp index ec5f77d74..705e98eea 100644 --- a/src/drivers/mkblctrl/mkblctrl.cpp +++ b/src/drivers/mkblctrl/mkblctrl.cpp @@ -705,7 +705,7 @@ MK::mk_check_for_blctrl(unsigned int count, bool showOutput, bool initI2C) Motor[i].State |= MOTOR_STATE_PRESENT_MASK; // set present bit; foundMotorCount++; - if (Motor[i].MaxPWM == 250) { + if ((Motor[i].MaxPWM & 252) == 248) { Motor[i].Version = BLCTRL_NEW; } else { |