|
@@ -483,9 +483,9 @@ class CustomSwitchStationLayer @JvmOverloads constructor(
|
|
|
var status =
|
|
var status =
|
|
|
p.pointSerialNumber?.let { parseStatus(switches?.find { it.idx.toString() == p.pointSerialNumber }) }
|
|
p.pointSerialNumber?.let { parseStatus(switches?.find { it.idx.toString() == p.pointSerialNumber }) }
|
|
|
?: p.status
|
|
?: p.status
|
|
|
- if (p.entityName=="E-45"){
|
|
|
|
|
- status = STATUS_ALARM
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (p.entityName=="E-45"){
|
|
|
|
|
+// status = STATUS_ALARM
|
|
|
|
|
+// }
|
|
|
// val status = Random.nextInt(3)
|
|
// val status = Random.nextInt(3)
|
|
|
when (status) {
|
|
when (status) {
|
|
|
STATUS_ON -> {
|
|
STATUS_ON -> {
|