1.修复夜视低电关机问题
This commit is contained in:
parent
c24d93ddc0
commit
f9a12e505d
|
@ -26,6 +26,7 @@
|
|||
#if HUNTING_CAMERA_MCU == ENABLE
|
||||
#include <sf_mcu.h>
|
||||
#include "sys_fastboot.h"
|
||||
#include "sf_battery.h"
|
||||
#endif
|
||||
|
||||
#define IRLED_CTRL_BY_PWM ENABLE//DISABLE//
|
||||
|
@ -517,12 +518,14 @@ void sf_ir_led_set(UINT8 mode, UINT8 flashLed, UINT8 stillExp, UINT8 isSnapVideo
|
|||
pwm_pwm_enable(IRLED_PWMID);
|
||||
|
||||
IsNightLedOn = 1;
|
||||
sf_set_night_led_flag(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
//sf_pwm_set(IR_LED_1, 0, 100, 100, 0);
|
||||
pwm_pwm_disable(IRLED_PWMID);
|
||||
IsNightLedOn = 0;
|
||||
sf_set_night_led_flag(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user