16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 23:39:18 +02:00
This commit is contained in:
milek7
2017-10-04 18:56:26 +02:00
parent 0603937ee4
commit 93ccd6802b

View File

@@ -139,8 +139,8 @@ void uart_input::poll()
{
// TODO: ugly! move it into structure like input_bits
uint8_t buzzer = Global::iPause ? 0 : (uint8_t)t->get_alarm();
uint8_t tacho = (uint8_t)t->get_tacho();
uint8_t buzzer = (uint8_t)t->get_alarm();
uint8_t tacho = Global::iPause ? 0 : (uint8_t)t->get_tacho();
uint16_t tank_press = (uint16_t)std::min(conf.tankuart, t->get_tank_pressure() * 0.1f / conf.tankmax * conf.tankuart);
uint16_t pipe_press = (uint16_t)std::min(conf.pipeuart, t->get_pipe_pressure() * 0.1f / conf.pipemax * conf.pipeuart);
uint16_t brake_press = (uint16_t)std::min(conf.brakeuart, t->get_brake_pressure() * 0.1f / conf.brakemax * conf.brakeuart);