From 7de07f6febe593e5bcc87712c115807a174f52ca Mon Sep 17 00:00:00 2001 From: fish Date: Fri, 22 Mar 2019 15:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worker.go b/worker.go index d2eec2e..c6feed1 100644 --- a/worker.go +++ b/worker.go @@ -81,9 +81,9 @@ func yunhorn_ys_l_v1(data_buf []byte) { device.VERSION = demoDevice.VERSION device.ONLINE = demoDevice.ONLINE - demoDevice.DATA["data"+strconv.Itoa(1)] = rand.Intn(2) - demoDevice.DATA["data"+strconv.Itoa(2)] = rand.Intn(2) - demoDevice.DATA["data"+strconv.Itoa(3)] = rand.Intn(2) + demoDevice.DATA["data"+strconv.Itoa(1)] = 0 + demoDevice.DATA["data"+strconv.Itoa(2)] = 0 + demoDevice.DATA["data"+strconv.Itoa(3)] = 0 //485 if data_type[0] == 2 {