Pārlūkot izejas kodu

称重校准

master
NXX pirms 1 gada
vecāks
revīzija
96408cb356
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +2
    -2
      app/src/main/java/com/example/bpa/app/DeviceData.java
  2. +1
    -1
      app/src/main/java/com/example/bpa/view/from/dzcjy_activity.java

+ 2
- 2
app/src/main/java/com/example/bpa/app/DeviceData.java Parādīt failu

@@ -292,8 +292,8 @@ public class DeviceData {
/**
* 砝码校准模式
*/
public void setWeightCalibrationMode(IWriteCallBack callback) {
ModbusTcpServer.get().WriteBool("M6.5", true, callback);
public void setWeightCalibrationMode(Boolean value ,IWriteCallBack callback) {
ModbusTcpServer.get().WriteBool("M6.5", value, callback);
}

/**


+ 1
- 1
app/src/main/java/com/example/bpa/view/from/dzcjy_activity.java Parādīt failu

@@ -123,7 +123,7 @@ public class dzcjy_activity extends AppCompatActivity implements View.OnClickLis
*/
private void Initdata() {
marialmode_switch.setChecked(DeviceData.Get().getCalibrationMode());
//out_switch.setChecked(DeviceData.Get());
out_switch.setChecked(DeviceData.Get().getWeightCalibrationMode());
materialweight_edit.setText("0");
outweight_edit.setText("0");
}


Notiek ielāde…
Atcelt
Saglabāt