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
c6646e8c
Unverified
Commit
c6646e8c
authored
Oct 04, 2023
by
Lucas Saavedra Vaz
Committed by
GitHub
Oct 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WiFiClient - Properly initialize and check _rxBuffer (#8699)
parent
02e31b40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
libraries/WiFi/src/WiFiClient.cpp
libraries/WiFi/src/WiFiClient.cpp
+4
-2
No files found.
libraries/WiFi/src/WiFiClient.cpp
View file @
c6646e8c
...
...
@@ -182,7 +182,7 @@ public:
}
};
WiFiClient
::
WiFiClient
()
:
_connected
(
false
),
_timeout
(
WIFI_CLIENT_DEF_CONN_TIMEOUT_MS
),
next
(
NULL
)
WiFiClient
::
WiFiClient
()
:
_
rxBuffer
(
nullptr
),
_
connected
(
false
),
_timeout
(
WIFI_CLIENT_DEF_CONN_TIMEOUT_MS
),
next
(
NULL
)
{
}
...
...
@@ -508,7 +508,9 @@ int WiFiClient::available()
// Though flushing means to send all pending data,
// seems that in Arduino it also means to clear RX
void
WiFiClient
::
flush
()
{
if
(
_rxBuffer
!=
nullptr
)
{
_rxBuffer
->
flush
();
}
}
uint8_t
WiFiClient
::
connected
()
...
...
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