Преглед изворни кода

测试修改

燃气自翻炒锅
pry пре 1 недеља
родитељ
комит
5f6bc5f0c4
1 измењених фајлова са 10 додато и 0 уклоњено
  1. +10
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/MakeGoodFragment.java

+ 10
- 0
app/src/main/java/com/bonait/bnframework/modules/home/fragment/MakeGoodFragment.java Прегледај датотеку

@@ -201,11 +201,18 @@ public class MakeGoodFragment extends BaseFragment {
StatusOrMakeGoodThread(); StatusOrMakeGoodThread();
ExecuteTheRecipe.DeviceMonitor(); ExecuteTheRecipe.DeviceMonitor();
}; };
// StatusOrMakeGoodThread();
CommHelper.get().Connect(); CommHelper.get().Connect();


DashboardInit(); DashboardInit();


NotifyProp(); NotifyProp();

// ExecuteTheRecipe.getDeviceData.EstopFaultNotify.setValue(true);
// ExecuteTheRecipe.getDeviceData.OilPumpFault.setValue(true);
// ExecuteTheRecipe.getDeviceData.MixingFailure.setValue(true);
// ExecuteTheRecipe.getDeviceData.IgnitionMalfunction.setValue(true);
// ExecuteTheRecipe.getDeviceData.HighTemperatureAlarm.setValue(true);
} }


/** /**
@@ -460,6 +467,9 @@ public class MakeGoodFragment extends BaseFragment {
new Thread(()->{ new Thread(()->{
while ( ExecuteTheRecipe.IsStart.getValue()&&good!=null){ while ( ExecuteTheRecipe.IsStart.getValue()&&good!=null){
try { try {
// int temp = new Random().nextInt(2);
// ExecuteTheRecipe.getDeviceData.CurrentTemperature=80+temp;
// ExecuteTheRecipe.getDeviceData.CurrentWeight=78+(new Random().nextBoolean()?temp*-1:temp);
DeviceDataDb.get().AddProduction(new BPA_PRODUCTION_DATA(good.name,ExecuteTheRecipe.getDeviceData.CurrentTemperature,ExecuteTheRecipe.getDeviceData.CurrentWeight)); DeviceDataDb.get().AddProduction(new BPA_PRODUCTION_DATA(good.name,ExecuteTheRecipe.getDeviceData.CurrentTemperature,ExecuteTheRecipe.getDeviceData.CurrentWeight));
Thread.sleep(1000); Thread.sleep(1000);
}catch (InterruptedException ex) { }catch (InterruptedException ex) {


Loading…
Откажи
Сачувај