1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-01 17:42:22 +01:00

[wifi] Make wifi_channel_() public (#7818)

This commit is contained in:
NP v/d Spek
2024-11-24 21:16:51 +01:00
committed by GitHub
parent dea297c8d7
commit 2ecd5cff07
7 changed files with 10 additions and 8 deletions

View File

@@ -973,7 +973,7 @@ int8_t WiFiComponent::wifi_rssi() {
}
return info.rssi;
}
int32_t WiFiComponent::wifi_channel_() {
int32_t WiFiComponent::get_wifi_channel() {
uint8_t primary;
wifi_second_chan_t second;
esp_err_t err = esp_wifi_get_channel(&primary, &second);