|
@@ -57,6 +57,7 @@ import serialporttest.utils.SerialPortUtil;
|
|
|
import static com.wdkl.callingbed2.util.AutoRebootUtil.ethreboot;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.closeHeart;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setCallStatus;
|
|
|
+import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setHandsMIC;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setNurseBrightness;
|
|
|
|
|
|
/**
|
|
@@ -113,8 +114,8 @@ public class InitActivity extends BaseActivity implements SerialPortUtil.ISerial
|
|
|
file.mkdir();
|
|
|
}
|
|
|
|
|
|
- //重置分机灯
|
|
|
- setCallStatus(serialPortUtil, "0");
|
|
|
+ //延迟发送串口命令
|
|
|
+ updateHandler.sendEmptyMessageDelayed(666, 5000);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -627,6 +628,11 @@ public class InitActivity extends BaseActivity implements SerialPortUtil.ISerial
|
|
|
AutoRebootUtil.reboot(MyApplication.getAppContext());
|
|
|
CallingBedSendCommand.setNetStatus(serialPortUtil, "1");
|
|
|
break;
|
|
|
+ case 666:
|
|
|
+ setHandsMIC(serialPortUtil, true);//使用手柄mic
|
|
|
+ //重置分机灯
|
|
|
+ setCallStatus(serialPortUtil, "0");
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
};
|