From 47dde0c68522d9a0dee425bcbe673486468d6f06 Mon Sep 17 00:00:00 2001 From: maciek001 Date: Wed, 27 Sep 2017 18:45:16 +0200 Subject: [PATCH] Update uart.cpp change 129 line. --- uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uart.cpp b/uart.cpp index 8362eaeb..d5db2953 100644 --- a/uart.cpp +++ b/uart.cpp @@ -126,7 +126,7 @@ void uart_input::poll() if (conf.trainenable) t->set_trainbrake((float)(((uint16_t)buffer[8] | ((uint16_t)buffer[9] << 8)) - conf.mainbrakemin) / (conf.mainbrakemax - conf.mainbrakemin)); if (conf.localenable) - t->set_localbrake((float)(((uint16_t)buffer[10] | ((uint16_t)buffer[11] << 8)) - conf.mainbrakemin) / (conf.localbrakemax - conf.localbrakemin)); + t->set_localbrake((float)(((uint16_t)buffer[10] | ((uint16_t)buffer[11] << 8)) - conf.localbrakemin) / (conf.localbrakemax - conf.localbrakemin)); old_packet = buffer; }