完善大屏的厕位传感器

This commit is contained in:
fish 2019-03-23 10:14:44 +08:00
parent 017b31c23e
commit fdda095aff
1 changed files with 2 additions and 1 deletions

View File

@ -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()