Skip to content

Commit c7a8d85

Browse files
committed
key_handle: update sleep key
1 parent ce7e40a commit c7a8d85

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

main/src/user/key_handle.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
#include "freertos/FreeRTOS.h"
1111
#include "freertos/task.h"
1212

13-
#include "driver/dac.h"
14-
#include "driver/rtc_io.h"
15-
1613
#include "core/os.h"
1714
#include "core/app.h"
1815

@@ -46,8 +43,7 @@ void sleep_key_handle(void)
4643
fan_set_mode(FAN_MODE_IDX_OFF);
4744

4845
#ifdef CONFIG_ENABLE_QC
49-
dac_output_disable(DAC_CHANNEL_1);
50-
dac_output_disable(DAC_CHANNEL_2);
46+
pwr_deinit();
5147
#endif
5248

5349
#ifdef CONFIG_ENABLE_BLE_CONTROL_IF

0 commit comments

Comments
 (0)