|
@@ -454,6 +454,23 @@ public class CallingDoorActivity extends BaseActivity implements SerialPortUtil.
|
|
|
|
|
|
private void callingBedNotice() throws Exception {
|
|
private void callingBedNotice() throws Exception {
|
|
if (System.currentTimeMillis() - millsCurrent > (1000 * 60 * 5)) {
|
|
if (System.currentTimeMillis() - millsCurrent > (1000 * 60 * 5)) {
|
|
|
|
+ //床位号文字闪烁重置
|
|
|
|
+ try {
|
|
|
|
+ for (int i = 0; i < mBedDataList.size(); i++) {
|
|
|
|
+ mStaggeredHomeAdapter.refreshRoomNumColor(0, i);
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ //门灯重置
|
|
|
|
+ if (MyApplication.serialPortUtil != null){
|
|
|
|
+ if (SharedPreferencesUtil.getIntSp(MyApplication.getAppContext(), Constants.MSG_SP, SharedPreferencesUtil.DoorLight) == 0) {
|
|
|
|
+ MyApplication.serialPortUtil.doorControl(0, null);//关闭门灯
|
|
|
|
+ } else {
|
|
|
|
+ MyApplication.serialPortUtil.doorControl(1, "111");//白色
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if (rvBedNotice.getVisibility() == View.VISIBLE)
|
|
if (rvBedNotice.getVisibility() == View.VISIBLE)
|
|
rvBedNotice.setVisibility(View.GONE);
|
|
rvBedNotice.setVisibility(View.GONE);
|
|
if (!groupEntities.isEmpty())
|
|
if (!groupEntities.isEmpty())
|