为了方便使用ToString,串口和以太网继承自Object

This commit is contained in:
大石头 2017-09-15 22:55:10 +08:00
parent a5a3847322
commit 02bda21d79
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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公共部分控制器