|
@@ -922,7 +922,7 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
|
|
|
override fun serialPortBedOnclick(buffer: ByteArray) {
|
|
|
Log.d("serialPortBedOnclick", "面板按键: " + buffer[0])
|
|
|
- if (buffer[0].toInt() == 1 || buffer[0].toInt() == 2) {
|
|
|
+ /*if (buffer[0].toInt() == 1 || buffer[0].toInt() == 2) {
|
|
|
//面板呼叫键
|
|
|
runOnUiThread {
|
|
|
if (Constant.CALL_STATE == Constant.CALL_STANDBY) {
|
|
@@ -931,15 +931,15 @@ class CallingdoorActivity :BaseActivity<CallingdoorActivityPresenter, Callingdoo
|
|
|
} else {
|
|
|
showMessage("当前设备可能未注册,不能呼叫")
|
|
|
}
|
|
|
- } /*else if (Constant.CALL_STATE == Constant.CALL_INCOMING) {
|
|
|
+ } else if (Constant.CALL_STATE == Constant.CALL_INCOMING) {
|
|
|
inCalling()
|
|
|
} else if (Constant.CALL_STATE == Constant.CALL_CALLING) {
|
|
|
hangupCall()
|
|
|
} else if (Constant.CALL_STATE == Constant.CALL_OUTGOING) {
|
|
|
cancelCall()
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
|
|
|
override fun serialPortSOSCall(status: String?) {
|