Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
d06fa8ee
Commit
d06fa8ee
authored
Jun 19, 2018
by
Alan
Committed by
Me No Dev
Jun 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make scanNetworks return int16 (#1496) (#1514)
parent
c63d746a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libraries/WiFi/src/WiFiScan.cpp
libraries/WiFi/src/WiFiScan.cpp
+2
-2
libraries/WiFi/src/WiFiScan.h
libraries/WiFi/src/WiFiScan.h
+1
-1
No files found.
libraries/WiFi/src/WiFiScan.cpp
View file @
d06fa8ee
...
...
@@ -54,7 +54,7 @@ void* WiFiScanClass::_scanResult = 0;
* @param show_hidden show hidden networks
* @return Number of discovered networks
*/
int
8
_t
WiFiScanClass
::
scanNetworks
(
bool
async
,
bool
show_hidden
,
bool
passive
,
uint32_t
max_ms_per_chan
)
int
16
_t
WiFiScanClass
::
scanNetworks
(
bool
async
,
bool
show_hidden
,
bool
passive
,
uint32_t
max_ms_per_chan
)
{
if
(
WiFiScanClass
::
_scanStarted
)
{
return
WIFI_SCAN_RUNNING
;
...
...
@@ -89,7 +89,7 @@ int8_t WiFiScanClass::scanNetworks(bool async, bool show_hidden, bool passive, u
while
(
!
(
WiFiScanClass
::
_scanComplete
))
{
delay
(
10
);
}
return
WiFiScanClass
::
_scanCount
;
return
(
int16_t
)
WiFiScanClass
::
_scanCount
;
}
else
{
return
WIFI_SCAN_FAILED
;
}
...
...
libraries/WiFi/src/WiFiScan.h
View file @
d06fa8ee
...
...
@@ -31,7 +31,7 @@ class WiFiScanClass
public:
int
8
_t
scanNetworks
(
bool
async
=
false
,
bool
show_hidden
=
false
,
bool
passive
=
false
,
uint32_t
max_ms_per_chan
=
300
);
int
16
_t
scanNetworks
(
bool
async
=
false
,
bool
show_hidden
=
false
,
bool
passive
=
false
,
uint32_t
max_ms_per_chan
=
300
);
int8_t
scanComplete
();
void
scanDelete
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment