|
@@ -823,17 +823,21 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
|
|
|
|
|
|
if (CommonEventTypes.MOTOR_REVERSE_CAN_NOT_RATHER_THEN_3 == event.type) {
|
|
|
- currentMotorGer = 3
|
|
|
- CofarSDK.cfgMotorGear(3)
|
|
|
- currDevInfo.mode.apply {
|
|
|
- updateMotorGearUI(
|
|
|
- minMotorGear.toFloat(),
|
|
|
- maxMotorGear.toFloat(),
|
|
|
- currentMotorGer,
|
|
|
- isMotorGearChange,
|
|
|
- true
|
|
|
- )
|
|
|
+ ///当用户操作的时候,不需要设置3速 且如果选中方向是反方向的的时候需要设置3速,其他就略过
|
|
|
+ if (userChanging&&MotorDirections.REVERSE == CofarSDK.devInfo().motorDirectionBuffer){
|
|
|
+ currentMotorGer = 3
|
|
|
+ CofarSDK.cfgMotorGear(3)
|
|
|
+ currDevInfo.mode.apply {
|
|
|
+ updateMotorGearUI(
|
|
|
+ minMotorGear.toFloat(),
|
|
|
+ maxMotorGear.toFloat(),
|
|
|
+ currentMotorGer,
|
|
|
+ isMotorGearChange,
|
|
|
+ true
|
|
|
+ )
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}, 500)
|
|
|
|
|
@@ -2497,10 +2501,8 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
if (CofarSDK.devInfo().potStatus.toInt() == 1) {
|
|
|
if (baseSn.startsWith("011")) {
|
|
|
showErrMsgDialog("mei_fang_guo_yi_chan_011")
|
|
|
-
|
|
|
} else {
|
|
|
showErrMsgDialog("mei_fang_guo_yi_chan")
|
|
|
-
|
|
|
}
|
|
|
return
|
|
|
}
|
|
@@ -2780,7 +2782,7 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
private fun motorGearSpeedEvent(progress: Int) {
|
|
|
userChanging = true
|
|
|
binding.speedRingText.text = "$progress"
|
|
|
- CofarSDK.cfgMotorGear(progress.toByte());
|
|
|
+ CofarSDK.cfgMotorGear(progress.toByte())
|
|
|
showConfirmAndCancelBtn()
|
|
|
}
|
|
|
|