This commit is contained in:
nnhy 2015-09-08 02:47:39 +00:00
parent cca509b2d4
commit c19e7994ff
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
class BlinkPort
{
private:
int _tid;
uint _tid;
public:
OutputPort* Ports[0x10];

View File

@ -2,12 +2,12 @@
//TConfig Config;
// 初始化各字段为0
void TConfig::Init()
// 初始化
TConfig::TConfig()
{
// 实际内存大小,减去头部大小
uint len = sizeof(this) - (int)&Length - (int)this;
memset(&Length, 0, len);
uint len = sizeof(this) - ((int)&Length - (int)this);
//memset(&Length, 0, len);
Length = len;
}

View File

@ -30,7 +30,7 @@ public:
ushort SleepTime; // 睡眠时间。秒
// 初始化各字段为0
void Init();
TConfig();
void LoadDefault();
};