Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0c47190

Browse files
fix(hosted): Make functions static
1 parent e038f4f commit 0c47190

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎cores/esp32/esp32-hal-hosted.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ static sdio_pin_config_t sdio_pin_config = {
4646
#endif
4747
};
4848

49-
// Forward declarations
50-
bool hostedInit();
51-
bool hostedDeinit();
52-
5349
bool hostedInitBLE() {
5450
log_i("Initializing ESP-Hosted for BLE");
5551
hosted_ble_active = true;
@@ -84,7 +80,7 @@ bool hostedDeinitWiFi() {
8480
}
8581
}
8682

87-
bool hostedInit() {
83+
staticbool hostedInit() {
8884
if (!hosted_initialized) {
8985
log_i("Initializing ESP-Hosted");
9086
log_d("SDIO pins: clk=%d, cmd=%d, d0=%d, d1=%d, d2=%d, d3=%d, rst=%d", sdio_pin_config.pin_clk, sdio_pin_config.pin_cmd, sdio_pin_config.pin_d0, sdio_pin_config.pin_d1, sdio_pin_config.pin_d2, sdio_pin_config.pin_d3, sdio_pin_config.pin_reset);
@@ -161,7 +157,7 @@ bool hostedIsWiFiActive() {
161157
return hosted_wifi_active;
162158
}
163159

164-
bool hostedDeinit() {
160+
staticbool hostedDeinit() {
165161
if (!hosted_initialized) {
166162
log_e("ESP-Hosted is not initialized");
167163
return false;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /