|
@@ -254,63 +254,67 @@ class FoodCookingApp : BaseApp() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!ledLock) {
|
|
|
- ledLock = true;
|
|
|
- if (!pm.isScreenOn) {
|
|
|
-
|
|
|
- //合盖
|
|
|
- if (devInfo.potCloverStatus.toInt() == 0) {
|
|
|
- CofarSDK.flashWhiteRedLed()
|
|
|
- } else {
|
|
|
- CofarSDK.switchWhiteLed('0');
|
|
|
- CofarSDK.flashRedLed()
|
|
|
- }
|
|
|
-
|
|
|
- } else {
|
|
|
- if (devInfo.status == DevStatus.STOP.toInt()) {
|
|
|
-
|
|
|
- if (devInfo.potStatus.toInt() == 0) {
|
|
|
- if (devInfo.potCloverStatus.toInt() == 0) {
|
|
|
- CofarSDK.flashWhiteRedLed()
|
|
|
- } else {
|
|
|
- CofarSDK.switchWhiteLed('0');
|
|
|
- CofarSDK.flashRedLed()
|
|
|
- }
|
|
|
- } else {
|
|
|
- CofarSDK.switchWhiteLed('0');
|
|
|
- CofarSDK.flashRedLed();
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if (devInfo.status == DevStatus.RUNNING.toInt()) {
|
|
|
-
|
|
|
- if (devInfo.temp < 60) {
|
|
|
- CofarSDK.switchRedLed('0');
|
|
|
- CofarSDK.switchWhiteLed('1');
|
|
|
- } else {
|
|
|
- CofarSDK.switchRedLed('1');
|
|
|
- CofarSDK.switchWhiteLed('0');
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if (devInfo.status == DevStatus.PAUSE.toInt()) {
|
|
|
-
|
|
|
- //判断盖子是否打开
|
|
|
- //合盖
|
|
|
- if (devInfo.potCloverStatus.toInt() == 1) {
|
|
|
- CofarSDK.switchWhiteLed('0');
|
|
|
- CofarSDK.flashRedLed()
|
|
|
- } else {
|
|
|
- CofarSDK.flashWhiteRedLed()
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- ledLock = false;
|
|
|
- }
|
|
|
+// if (!ledLock) {
|
|
|
+// //devInfo.potStatus 0是有锅 1是没锅
|
|
|
+// //devInfo.potCloverStatus 0是合盖,1是没盒盖
|
|
|
+// ledLock = true;
|
|
|
+// //屏幕暗
|
|
|
+// if (!pm.isScreenOn) {
|
|
|
+//
|
|
|
+// //合盖
|
|
|
+// if (devInfo.potCloverStatus.toInt() == 0) {
|
|
|
+// CofarSDK.flashWhiteRedLed()
|
|
|
+// } else {
|
|
|
+// CofarSDK.switchWhiteLed('0');
|
|
|
+// CofarSDK.flashRedLed()
|
|
|
+// }
|
|
|
+//
|
|
|
+// } else {
|
|
|
+// //屏幕亮
|
|
|
+// if (devInfo.status == DevStatus.STOP.toInt()) {
|
|
|
+//
|
|
|
+// if (devInfo.potStatus.toInt() == 0) {
|
|
|
+// if (devInfo.potCloverStatus.toInt() == 0) {
|
|
|
+// CofarSDK.flashWhiteRedLed()
|
|
|
+// } else {
|
|
|
+// CofarSDK.switchWhiteLed('0');
|
|
|
+// CofarSDK.flashRedLed()
|
|
|
+// }
|
|
|
+// } else {
|
|
|
+// CofarSDK.switchWhiteLed('0');
|
|
|
+// CofarSDK.flashRedLed();
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// if (devInfo.status == DevStatus.RUNNING.toInt()) {
|
|
|
+//
|
|
|
+// if (devInfo.temp < 60) {
|
|
|
+// CofarSDK.switchRedLed('0');
|
|
|
+// CofarSDK.switchWhiteLed('1');
|
|
|
+// } else {
|
|
|
+// CofarSDK.switchRedLed('1');
|
|
|
+// CofarSDK.switchWhiteLed('0');
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// if (devInfo.status == DevStatus.PAUSE.toInt()) {
|
|
|
+//
|
|
|
+// //判断盖子是否打开
|
|
|
+// //合盖
|
|
|
+// if (devInfo.potCloverStatus.toInt() == 1) {
|
|
|
+// CofarSDK.switchWhiteLed('0');
|
|
|
+// CofarSDK.flashRedLed()
|
|
|
+// } else {
|
|
|
+// CofarSDK.flashWhiteRedLed()
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
+// }
|
|
|
+// ledLock = false;
|
|
|
+// }
|
|
|
GlobalDevEvent.globalCoverEvent(event, pm)
|
|
|
}
|
|
|
}
|