|
|
@@ -276,7 +276,7 @@ object ModBusController {
|
|
|
* 更新钥匙RFID
|
|
|
*/
|
|
|
fun updateKeyRfid(slaveIdx: Int, isLeft: Boolean, rfid: String) {
|
|
|
- deviceList.find { it.addr?.toInt() == slaveIdx }?.keyList?.find { it.isLeft == isLeft }?.rfid = rfid
|
|
|
+ deviceList.find { it.addr.toInt() == slaveIdx }?.keyList?.find { it.isLeft == isLeft }?.rfid = rfid
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -290,7 +290,7 @@ object ModBusController {
|
|
|
* 更新锁具RFID
|
|
|
*/
|
|
|
fun updateLockRfid(slaveIdx: Int, lockIdx: Int, rfid: String) {
|
|
|
- deviceList.find { it.addr?.toInt() == slaveIdx }?.lockList?.find { it.idx == lockIdx }?.rfid = rfid
|
|
|
+ deviceList.find { it.addr.toInt() == slaveIdx }?.lockList?.find { it.idx == lockIdx }?.rfid = rfid
|
|
|
}
|
|
|
|
|
|
/**
|