Przeglądaj źródła

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

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 4 lat temu
rodzic
commit
3cec230040
1 zmienionych plików z 4 dodań i 1 usunięć
  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 u32 _check_mos_time = 0;
 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;
 	}
+	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) {
 		return 10;
 	}