RC_Channel: ensure _reverse is not 0

this caused the example to fail
This commit is contained in:
Andrew Tridgell 2012-10-16 15:50:29 +11:00
parent 8577a0c7a1
commit bad02cab04

View File

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