陈嘉乐
2020-07-31 52e317b95d830f8cd1156b403ff5a34fb8f9bccb
HDL_ON/DriverLayer/Control.cs
@@ -183,7 +183,14 @@
                                        {
                                            ControlBytesSend(Command.SetCurtainModelStutas, subnetId, deviceId, new byte[] { curtain.bus_Data.LoopID, 0 });
                                        }
                                        ControlBytesSend(Command.SetCurtainModelStutas, subnetId, deviceId, new byte[] { 17, (byte)curtain.openLevel });
                                        else if (curtain.on_off == "on")
                                        {
                                            ControlBytesSend(Command.SetCurtainModelStutas, subnetId, deviceId, new byte[] { 17, 100 });
                                        }
                                        else if (curtain.on_off == "off")
                                        {
                                            ControlBytesSend(Command.SetCurtainModelStutas, subnetId, deviceId, new byte[] { 17, 0 });
                                        }
                                        break;
                                }
                                break;