mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
can interface
remove next mid
This commit is contained in:
@@ -33,9 +33,3 @@ void CAN_Interface::send_frame(const QCanBusFrame &frame)
|
|||||||
{
|
{
|
||||||
m_canDevice->writeFrame(frame);
|
m_canDevice->writeFrame(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint8_t CAN_Interface::next_mid()
|
|
||||||
{
|
|
||||||
return m_mid++;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <ctime>
|
|
||||||
#include <cstdint>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QCanBus>
|
#include <QCanBus>
|
||||||
#include <QCanBusDevice>
|
#include <QCanBusDevice>
|
||||||
@@ -14,11 +12,9 @@ class CAN_Interface : public QObject
|
|||||||
~CAN_Interface();
|
~CAN_Interface();
|
||||||
|
|
||||||
void send_frame(const QCanBusFrame &frame);
|
void send_frame(const QCanBusFrame &frame);
|
||||||
uint8_t next_mid();
|
|
||||||
signals:
|
signals:
|
||||||
void frame_received(const QCanBusFrame frame);
|
void frame_received(const QCanBusFrame frame);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QCanBusDevice *m_canDevice;
|
QCanBusDevice *m_canDevice;
|
||||||
uint8_t m_mid;
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user