mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
sim base
make PUSH_UI_ITEM define so it can be ported easily from server to client and vice versa
This commit is contained in:
@@ -4,7 +4,7 @@ Can_Debugger::Can_Debugger(CAN_Wrapper *can_wrapper, QSerialPort *serial, QObjec
|
||||
: Simulator_base("Can Debugger", can_wrapper, serial, std::chrono::milliseconds(100), parent),
|
||||
m_wrapper(can_wrapper), m_can_ui(Color::Black, Color::White)
|
||||
{
|
||||
this->push_ui_item(&this->m_can_ui);
|
||||
PUSH_UI_ITEM(m_can_ui);
|
||||
|
||||
connect(&m_can_ui, &UI_can::on_send, this, [=, this](QCanBusFrame frame) { m_wrapper->send_can_message(frame); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user