Переглянути джерело

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

xcbosa 3 роки тому
батько
коміт
9a529b8b39
1 змінених файлів з 2 додано та 2 видалено
  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;