Procházet zdrojové kódy

2.Fixup - 开始后下发的时间值不是时间调节显示的当前值

xcbosa před 3 roky
rodič
revize
9a529b8b39
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      WpfTest1/MainWindow.xaml.cs

+ 2 - 2
WpfTest1/MainWindow.xaml.cs

@@ -1682,11 +1682,11 @@ namespace WpfTest1
                         (byte)treatmentCustomModeList[i].tcInactiveTime,
                         (ushort)(treatmentCustomModeList[i].tcActiveTime + treatmentCustomModeList[i].tcInactiveTime));
                 }
-                comAgent.enqueueCommand(Com.createStartManualCommand(parseTreatmentTime(treatmentTime), (byte)(sliderStrength.Value * 100), steps));
+                comAgent.enqueueCommand(Com.createStartManualCommand(parseTreatmentTime(treatmentTime), (byte)sliderStrength.Value, steps));
             }
             else
             {
-                comAgent.enqueueCommand(Com.createStartDefinedCommand(targetTreatment.id, parseTreatmentTime(treatmentTime), (byte)(sliderStrength.Value * 100)));
+                comAgent.enqueueCommand(Com.createStartDefinedCommand(targetTreatment.id, parseTreatmentTime(treatmentTime), (byte)sliderStrength.Value));
             }
 
             isRunning = true;