为了方便使用ToString,串口和以太网继承自Object
This commit is contained in:
parent
a5a3847322
commit
02bda21d79
|
@ -7,7 +7,7 @@
|
|||
#include "Net\ITransport.h"
|
||||
|
||||
// 串口类
|
||||
class SerialPort : public ITransport, public Power
|
||||
class SerialPort : public Object, public ITransport, public Power
|
||||
{
|
||||
private:
|
||||
friend class ComProxy;
|
||||
|
|
|
@ -207,7 +207,7 @@ typedef struct : ByteStruct
|
|||
/****************************** 基础类 ************************************/
|
||||
|
||||
// 硬件Socket控制器
|
||||
class HardSocket : public ITransport, public Socket
|
||||
class HardSocket : public Object, public ITransport, public Socket
|
||||
{
|
||||
private:
|
||||
W5500& _Host; // W5500公共部分控制器
|
||||
|
|
Loading…
Reference in New Issue