Skip to content

Commit d35793c

Browse files
committed
pwr: add startup prompt
1 parent 1f853e4 commit d35793c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main/src/user/pwr.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void pwr_init(void)
105105

106106
dac_output_disable(DAC_CHANNEL_1);
107107

108-
return;
108+
goto pwr_exit;
109109
}
110110

111111
do {
@@ -119,7 +119,7 @@ void pwr_init(void)
119119
if (dp_raw > 255) {
120120
pwr_mode = PWR_IDX_DCP;
121121

122-
return;
122+
goto pwr_exit;
123123
}
124124

125125
qc_mode = true;
@@ -128,4 +128,7 @@ void pwr_init(void)
128128
app_getenv("PWR_INIT_CFG", &env_mode, &length);
129129

130130
pwr_set_mode(env_mode);
131+
132+
pwr_exit:
133+
ESP_LOGI(TAG, "started.");
131134
}

0 commit comments

Comments
 (0)