Explorar o código

单mos开,强开另外的mos等待时间给稍微长一些

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui %!s(int64=4) %!d(string=hai) anos
pai
achega
3cec230040
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Application/app/sox/state.c

+ 4 - 1
Application/app/sox/state.c

@@ -557,9 +557,12 @@ static void check_charging(){
 static int _min_current_for_both_mos_count = 0;
 static int _min_current_for_both_mos_count = 0;
 static u32 _check_mos_time = 0;
 static u32 _check_mos_time = 0;
 static __INLINE u32 _open_all_mos_time(void){
 static __INLINE u32 _open_all_mos_time(void){
-	if (abs(measure_value()->load_current) >= MIN_CURRENT_FOR_BOTH_MOS_OPEN * 2){
+	if (abs(measure_value()->load_current) >= MIN_CURRENT_FOR_BOTH_MOS_OPEN * 11){
 		return 0;
 		return 0;
 	}
 	}
+	if (abs(measure_value()->load_current) >= MIN_CURRENT_FOR_BOTH_MOS_OPEN * 6) {
+		return 5;
+	}	
 	if (abs(measure_value()->load_current) >= MIN_CURRENT_FOR_BOTH_MOS_OPEN) {
 	if (abs(measure_value()->load_current) >= MIN_CURRENT_FOR_BOTH_MOS_OPEN) {
 		return 10;
 		return 10;
 	}
 	}