Browse Source

TODO内容调整

Frankensteinly 1 năm trước cách đây
mục cha
commit
0ac9d9a06d

+ 2 - 2
app/src/main/java/com/grkj/iscs/activity/ModbusActivity.kt

@@ -63,6 +63,7 @@ class ModbusActivity : BaseMvpActivity<IModbusView, ModBusPresenter, ActivityMod
             // TODO slaveIdx暂时写死,调试用
             ModBusController.readBuckleStatus(false, 1) { type, res ->
                 LogUtil.i("单slave卡扣状态 : $type - ${res.toHexStrings()}")
+                // TODO 待验证
                 when (type) {
                     0 -> {
                         val isLeftLock = (res[4].toInt() shr 0) and 0x1 == 1
@@ -91,10 +92,9 @@ class ModbusActivity : BaseMvpActivity<IModbusView, ModBusPresenter, ActivityMod
                 LogUtil.i("单slave卡扣状态 : $type - ${res.toHexStrings()}")
                 when (type) {
                     0 -> {
-                        // TODO 待验证
                         val isLeftLock = (res[4].toInt() shr 0) and 0x1 == 1
                         val isRightLock = (res[4].toInt() shr 4) and 0x1 == 1
-                        println("钥匙底座卡扣状态 : $isLeftLock - $isRightLock")
+                        println("锁具底座卡扣状态 : $isLeftLock - $isRightLock")
                     }
                     1 -> {
                         val tempList = mutableListOf<Boolean>()