mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
server can if
add critical message
This commit is contained in:
@@ -42,7 +42,10 @@ void CAN_Interface::connect_to_dev(QString dev)
|
|||||||
void CAN_Interface::send_frame(const QCanBusFrame frame)
|
void CAN_Interface::send_frame(const QCanBusFrame frame)
|
||||||
{
|
{
|
||||||
if (m_canDevice == nullptr)
|
if (m_canDevice == nullptr)
|
||||||
|
{
|
||||||
|
SPDLOG_CRITICAL("CAN dev = nullptr");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
m_canDevice->writeFrame(frame);
|
m_canDevice->writeFrame(frame);
|
||||||
emit frame_send(frame);
|
emit frame_send(frame);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user