mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
(uart) expose radio message indicator state
This commit is contained in:
@@ -895,7 +895,8 @@ TTrain::get_state() const {
|
|||||||
mvOccupied->Doors.step_enabled,
|
mvOccupied->Doors.step_enabled,
|
||||||
mvOccupied->Power24vIsAvailable,
|
mvOccupied->Power24vIsAvailable,
|
||||||
0,
|
0,
|
||||||
mvOccupied->LockPipe
|
mvOccupied->LockPipe,
|
||||||
|
btLampkaRadioMessage.GetValue(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
Train.h
1
Train.h
@@ -123,6 +123,7 @@ class TTrain {
|
|||||||
std::uint8_t battery;
|
std::uint8_t battery;
|
||||||
std::uint8_t emergencybrake;
|
std::uint8_t emergencybrake;
|
||||||
std::uint8_t lockpipe;
|
std::uint8_t lockpipe;
|
||||||
|
bool radiomessageindicator;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct screen_entry {
|
struct screen_entry {
|
||||||
|
|||||||
3
uart.cpp
3
uart.cpp
@@ -557,7 +557,8 @@ void uart_input::poll()
|
|||||||
| trainstate.doorrightallowed << 3
|
| trainstate.doorrightallowed << 3
|
||||||
| trainstate.doorrightopened << 4
|
| trainstate.doorrightopened << 4
|
||||||
| trainstate.doorstepallowed << 5
|
| trainstate.doorstepallowed << 5
|
||||||
| trainstate.battery << 6),
|
| trainstate.battery << 6
|
||||||
|
| trainstate.radiomessageindicator << 7),
|
||||||
//byte 4
|
//byte 4
|
||||||
(uint8_t)(
|
(uint8_t)(
|
||||||
trainstate.train_heating << 0
|
trainstate.train_heating << 0
|
||||||
|
|||||||
Reference in New Issue
Block a user