This commit is contained in:
xyy
2026-04-14 21:40:09 +08:00
parent 84ce86fc33
commit 8a8afe8e0e
4 changed files with 47 additions and 47 deletions

View File

@@ -209,6 +209,11 @@ namespace MembranePoreTester.ViewModels
MessageBox.Show("低压模式,加压上限不能超过200!");
return;
}
if (!_suppressPressureValidation && HighLowPressure.Contains("高压") && value > 800)
{
MessageBox.Show("高压模式,加压上限不能超过500!");
return;
}
bool changed = SetProperty(ref _pressureUpperLimit, value);
// 仅在非抑制模式下将改变写回PLC避免把PLC读回的值再次写入造成循环