From 2e17cb74f6c70cafda034704adf080c4d6a280d4 Mon Sep 17 00:00:00 2001 From: xxe Date: Fri, 23 Sep 2022 10:43:10 +0800 Subject: [PATCH] 1 --- HKCardOUT/ViewModels/RootViewModel.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/HKCardOUT/ViewModels/RootViewModel.cs b/HKCardOUT/ViewModels/RootViewModel.cs index b66823f..ac4d6bf 100644 --- a/HKCardOUT/ViewModels/RootViewModel.cs +++ b/HKCardOUT/ViewModels/RootViewModel.cs @@ -108,9 +108,7 @@ namespace HKCardOUT.ViewModels DataBus.StoreInfo.Devices.ForEach(async item => { if (!UHF_RS485_Helper.GetInstance().GetSerialPortState()) - { - HandyControl.Controls.Growl.InfoGlobal("串口未链接"); - } + return; else { var x = await UHF_RS485_Helper.GetInstance().ReadCard(item.Address.AsInt());