配置区起始地址

This commit is contained in:
cdyong 2015-11-05 08:43:23 +00:00
parent d1a949c531
commit c2997ea1c9
3 changed files with 4 additions and 1 deletions

View File

@ -241,7 +241,7 @@ void TinyClient::OnWrite(const TinyMessage& msg)
bool TinyClient::WriteCfg(uint offset, Stream ms) bool TinyClient::WriteCfg(uint offset, Stream ms)
{ {
if(offset < 64) return false; if(offset < Cfg->StartSet) return false;
ByteArray cfg(Cfg, Cfg->Length); ByteArray cfg(Cfg, Cfg->Length);

View File

@ -15,6 +15,7 @@ void TinyConfig::LoadDefault()
PingTime = 10; PingTime = 10;
OfflineTime = 60; OfflineTime = 60;
StartSet =64;
} }
void TinyConfig::Load() void TinyConfig::Load()

View File

@ -35,6 +35,8 @@ struct TinyConfig
// 初始化各字段为0 // 初始化各字段为0
//TinyConfig(); //TinyConfig();
//const TinyConfig& Default(); //const TinyConfig& Default();
byte StartSet;
void LoadDefault(); void LoadDefault();
void Load(); void Load();