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); } }