This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1815,6 +1815,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
|||||||
|
|
||||||
private void PrimaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void PrimaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
|
_modbusMaster?.WriteSingleRegister(1, 2, 0);
|
||||||
// 停止定时器
|
// 停止定时器
|
||||||
if (_readtimer != null)
|
if (_readtimer != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1167,7 +1167,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
|||||||
|
|
||||||
private void PrimaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void PrimaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
|
_modbusMaster?.WriteSingleRegister(1, 2, 0);
|
||||||
if (_readtimer != null)
|
if (_readtimer != null)
|
||||||
{
|
{
|
||||||
_readtimer.Stop();
|
_readtimer.Stop();
|
||||||
|
|||||||
@@ -664,6 +664,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪
|
|||||||
|
|
||||||
private void SecondaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void SecondaryIgnitionForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
|
_modbusMaster?.WriteSingleRegister(1, 2, 0);
|
||||||
if (_readtimer != null)
|
if (_readtimer != null)
|
||||||
{
|
{
|
||||||
_readtimer.Stop();
|
_readtimer.Stop();
|
||||||
|
|||||||
Reference in New Issue
Block a user