@@ -123,7 +123,22 @@
"devMode": "SOUP",
"listShow": true
},
-
+ {
+ "type": "BROWN",
+ "name": "brown",
+ "bg": "cm_icon_roast",
+ "icon": "cm_icon_roast",
+ "devMode": "SOUP",
+ "listShow": false
+ },
+ "type": "ROAST",
+ "name": "roast",
{
"type": "SLOW_COOK",
"name": "slow_cook",
@@ -123,6 +123,9 @@ object CommonTuyaSoUtils {
fun navigateFinish(){
if (AppActivityManager.getInstance().topActivity.localClassName.contains("ModesDetailActivity")){
+ if (CofarSDK.devInfo().runningStatus != DevStatus.STOP){
+ CofarSDK.stop(false)
+ }
AppActivityManager.getInstance().topActivity.finish()
}
@@ -551,7 +551,7 @@ public class TuyaUtilsSo {
));
if (isWeight) {
- dpEvents.add(new DPEvent(TuyaSoDp.WEIGHT_NUMBER, (byte) DPEvent.Type.PROP_VALUE, info.getWeight(), 0))
+ dpEvents.add(new DPEvent(TuyaSoDp.WEIGHT_NUMBER, (byte) DPEvent.Type.PROP_VALUE, info.getWeight(), 0));