From ff400bfb7b6c0897eba236b67a03b4fb73884264 Mon Sep 17 00:00:00 2001 From: "Schoenberger, Philipp" Date: Thu, 4 Apr 2019 15:21:38 +0200 Subject: [PATCH] fix inverting of channels --- remote/src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote/src/input.cpp b/remote/src/input.cpp index e483276..ce62986 100644 --- a/remote/src/input.cpp +++ b/remote/src/input.cpp @@ -234,7 +234,7 @@ void Input::update(void) { 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",