This commit is contained in:
parent
cca509b2d4
commit
c19e7994ff
|
@ -8,7 +8,7 @@
|
||||||
class BlinkPort
|
class BlinkPort
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
int _tid;
|
uint _tid;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OutputPort* Ports[0x10];
|
OutputPort* Ports[0x10];
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
//TConfig Config;
|
//TConfig Config;
|
||||||
|
|
||||||
// 初始化,各字段为0
|
// 初始化
|
||||||
void TConfig::Init()
|
TConfig::TConfig()
|
||||||
{
|
{
|
||||||
// 实际内存大小,减去头部大小
|
// 实际内存大小,减去头部大小
|
||||||
uint len = sizeof(this) - (int)&Length - (int)this;
|
uint len = sizeof(this) - ((int)&Length - (int)this);
|
||||||
memset(&Length, 0, len);
|
//memset(&Length, 0, len);
|
||||||
Length = len;
|
Length = len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue