From c6b93be2f43f5c32bf4e46e6947d1c1ec605eaa6 Mon Sep 17 00:00:00 2001 From: "747575620@qq.com" <747575620@qq.com> Date: Thu, 22 Sep 2022 16:26:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=9C=82=E9=B8=A3=E5=A2=9E=E5=8A=A0=E6=A1=A3?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UHFHelper/UHF_RS485_Helper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UHFHelper/UHF_RS485_Helper.cs b/UHFHelper/UHF_RS485_Helper.cs index b00b459..f34c04c 100644 --- a/UHFHelper/UHF_RS485_Helper.cs +++ b/UHFHelper/UHF_RS485_Helper.cs @@ -188,9 +188,9 @@ namespace UHFHelper /// /// 发出蜂鸣声音3次,代表扣款成功! /// - public async void OpenBeep() + public async void OpenBeep(int addr) { - byte[] sendData = new byte[]{ 0x07, 0x01, 0x33, 0x08, 0x02, 0x03, 0x33,0xB1 }; + byte[] sendData = new byte[]{ 0x07, (byte)addr, 0x33, 0x08, 0x02, 0x03, 0x33,0xB1 }; await SendMessageAsync(sendData, TimeSpan.FromSeconds(1), 6); } }