完善大屏的厕位传感器
This commit is contained in:
parent
017b31c23e
commit
fdda095aff
|
@ -102,6 +102,7 @@ func yunhorn_lora_l_v1(data_buf []byte) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//用于演示,展示在大屏上一个厕位
|
||||||
func yunhorn_ys_l_v1(data_buf []byte) {
|
func yunhorn_ys_l_v1(data_buf []byte) {
|
||||||
|
|
||||||
// for _, i := range conf.RS485DEVICES {
|
// for _, i := range conf.RS485DEVICES {
|
||||||
|
@ -131,7 +132,7 @@ func yunhorn_ys_l_v1(data_buf []byte) {
|
||||||
demoDevice.DATA["data"+strconv.Itoa(3)] = 0
|
demoDevice.DATA["data"+strconv.Itoa(3)] = 0
|
||||||
|
|
||||||
//485
|
//485
|
||||||
if data_type[0] == 2 {
|
if data_int0==0 && data_int1==0 {
|
||||||
demoDevice.DATA["data"+strconv.Itoa(8)] = data_int[0]
|
demoDevice.DATA["data"+strconv.Itoa(8)] = data_int[0]
|
||||||
var device Device
|
var device Device
|
||||||
device.Lock()
|
device.Lock()
|
||||||
|
|
Loading…
Reference in New Issue