Skip to content

Commit 81a10a4

Browse files
authored
BREAKING: Change return type of channel() (esp8266#7656)
1 parent 0452f47 commit 81a10a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void ESP8266WiFiGenericClass::_eventCallback(void* arg)
254254
* Return the current channel associated with the network
255255
* @return channel (1-13)
256256
*/
257-
int32_t ESP8266WiFiGenericClass::channel(void) {
257+
uint8_t ESP8266WiFiGenericClass::channel(void) {
258258
return wifi_get_channel();
259259
}
260260

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ESP8266WiFiGenericClass {
7474
WiFiEventHandler onSoftAPModeProbeRequestReceived(std::function<void(const WiFiEventSoftAPModeProbeRequestReceived&)>);
7575
WiFiEventHandler onWiFiModeChange(std::function<void(const WiFiEventModeChange&)>);
7676

77-
int32_t channel(void);
77+
uint8_t channel(void);
7878

7979
bool setSleepMode(WiFiSleepType_t type, uint8_t listenInterval = 0);
8080

0 commit comments

Comments
 (0)