Ver código fonte

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

xcbosa 3 anos atrás
pai
commit
9a529b8b39
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      WpfTest1/MainWindow.xaml.cs

+ 2 - 2
WpfTest1/MainWindow.xaml.cs

@@ -1682,11 +1682,11 @@ namespace WpfTest1
                         (byte)treatmentCustomModeList[i].tcInactiveTime,
                         (byte)treatmentCustomModeList[i].tcInactiveTime,
                         (ushort)(treatmentCustomModeList[i].tcActiveTime + 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
             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;
             isRunning = true;