Browse Source

fix inverting of channels

master
Schoenberger, Philipp 6 years ago
parent
commit
ff400bfb7b
No known key found for this signature in database GPG Key ID: 77E9DF7A0452BF64
  1. 2
      remote/src/input.cpp

2
remote/src/input.cpp

@ -234,7 +234,7 @@ void Input::update(void) {
for (uint8_t ch = 0; ch < CH_COUNT; ++ch) { for (uint8_t ch = 0; ch < CH_COUNT; ++ch) {
this->channel_data[ch] = map(this->curr->ch_data[ch], this->ch_config[ch].min, this->ch_config[ch].max, CHANNEL_MAX_100, CHANNEL_MIN_100);
this->channel_data[ch] = map(this->curr->ch_data[ch], this->ch_config[ch].min, this->ch_config[ch].max, CHANNEL_MIN_100, CHANNEL_MAX_100);
} }
/*debug_input("t%d y%d r%d p%d a1_%d a2_%d a3_%d a4_%d a5_%d m%d", /*debug_input("t%d y%d r%d p%d a1_%d a2_%d a3_%d a4_%d a5_%d m%d",

Loading…
Cancel
Save