From fdda095affbf79fefd771b8903b3b4104f6737fe Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 23 Mar 2019 10:14:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=A4=A7=E5=B1=8F=E7=9A=84?= =?UTF-8?q?=E5=8E=95=E4=BD=8D=E4=BC=A0=E6=84=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker.go b/worker.go index 9124a06..b217f0d 100644 --- a/worker.go +++ b/worker.go @@ -102,6 +102,7 @@ func yunhorn_lora_l_v1(data_buf []byte) { } +//用于演示,展示在大屏上一个厕位 func yunhorn_ys_l_v1(data_buf []byte) { // for _, i := range conf.RS485DEVICES { @@ -131,7 +132,7 @@ func yunhorn_ys_l_v1(data_buf []byte) { demoDevice.DATA["data"+strconv.Itoa(3)] = 0 //485 - if data_type[0] == 2 { + if data_int0==0 && data_int1==0 { demoDevice.DATA["data"+strconv.Itoa(8)] = data_int[0] var device Device device.Lock()