批量写入时,地址也要递增

This commit is contained in:
大石头 2017-04-07 14:29:52 +08:00
parent ae444cbcf7
commit 3323b60583
1 changed files with 2 additions and 1 deletions

View File

@ -77,10 +77,11 @@ bool AT24CXX::Write(uint addr, const Buffer& bs) const
if (size > count) size = count;
if (!IIC->Write((ushort)addr, bs.Sub(index, size))) return false;
addr += size;
index += size;
count -= size;
// 内部存储数据等1ms差点点等5ms足够了
// 内部存储数据等1ms差点点等5ms足够了。手册规定10ms
Sys.Sleep(5);
}
return true;