Browse Source

RC_Channel: ensure _reverse is not 0

this caused the example to fail
mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
86b509a609
  1. 3
      libraries/RC_Channel/RC_Channel.h

3
libraries/RC_Channel/RC_Channel.h

@ -23,6 +23,9 @@ public: @@ -23,6 +23,9 @@ public:
_filter(false),
_high(1),
_ch_out(ch_out) {
if (_reverse == 0) {
_reverse = 1;
}
}
// setup min and max radio values in CLI

Loading…
Cancel
Save