From e5c50f215156a213fa39abef2de477db98b75969 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 13 三月 2026 13:34:09 +0800
Subject: [PATCH] fix: correct DBRegion constructor to use config.DBBlockCount
---
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryStore.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryStore.cs b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryStore.cs
index 73f5cc4..a1b992e 100644
--- a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryStore.cs
+++ b/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);
--
Gitblit v1.9.3