wanshenmean
2026-03-13 e5c50f215156a213fa39abef2de477db98b75969
fix: correct DBRegion constructor to use config.DBBlockCount

- Change from hardcoded blockCount=1 to config.DBBlockCount
- Ensures correct number of DB blocks are created per configuration

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
已修改1个文件
2 ■■■ 文件已修改
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryStore.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryStore.cs
@@ -62,7 +62,7 @@
            _config = config ?? throw new ArgumentNullException(nameof(config));
            _mRegion = new MRegion(config.MRegionSize);
            _dbRegion = new DBRegion(1, config.DBBlockSize);
            _dbRegion = new DBRegion((ushort)config.DBBlockCount, config.DBBlockSize);
            _iRegion = new IRegion(config.IRegionSize);
            _qRegion = new QRegion(config.QRegionSize);
            _tRegion = new TRegion(config.TRegionCount);