修改苏安院实体设备逻辑

This commit is contained in:
joylink_zhangsai 2023-03-11 21:50:28 +08:00
parent e72837d793
commit 7c54f0976b

View File

@ -44,6 +44,7 @@ public class SaySwitchConfig extends RealDeviceConfig {
return false; return false;
} else { } else {
turnToN = true; turnToN = true;
turnToP = false;
startTime = LocalDateTime.now(); startTime = LocalDateTime.now();
return true; return true;
} }
@ -57,6 +58,7 @@ public class SaySwitchConfig extends RealDeviceConfig {
if (turnToP) { if (turnToP) {
return false; return false;
} else { } else {
turnToN = false;
turnToP = true; turnToP = true;
startTime = LocalDateTime.now(); startTime = LocalDateTime.now();
return true; return true;