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-pico
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-pico
Commits
1160d7cd
Unverified
Commit
1160d7cd
authored
Dec 20, 2023
by
Earle F. Philhower, III
Committed by
GitHub
Dec 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace ancient "boolean" with "bool" (#1908)
parent
2aa85e32
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
34 deletions
+34
-34
libraries/DNSServer/examples/CaptivePortalAdvanced/CaptivePortalAdvanced.ino
.../examples/CaptivePortalAdvanced/CaptivePortalAdvanced.ino
+1
-1
libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino
...s/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino
+1
-1
libraries/DNSServer/examples/CaptivePortalAdvanced/tools.ino
libraries/DNSServer/examples/CaptivePortalAdvanced/tools.ino
+1
-1
libraries/SD/src/SD.h
libraries/SD/src/SD.h
+22
-22
libraries/WebServer/src/HTTPServer.cpp
libraries/WebServer/src/HTTPServer.cpp
+3
-3
libraries/WebServer/src/HTTPServer.h
libraries/WebServer/src/HTTPServer.h
+5
-5
libraries/WebServer/src/Parsing.cpp
libraries/WebServer/src/Parsing.cpp
+1
-1
No files found.
libraries/DNSServer/examples/CaptivePortalAdvanced/CaptivePortalAdvanced.ino
View file @
1160d7cd
...
...
@@ -46,7 +46,7 @@ IPAddress netMsk(255, 255, 255, 0);
/** Should I connect to WLAN asap? */
bool
ean
connect
;
bool
connect
;
/** Last time I tried to connect to WLAN */
unsigned
long
lastConnectTry
=
0
;
...
...
libraries/DNSServer/examples/CaptivePortalAdvanced/handleHttp.ino
View file @
1160d7cd
...
...
@@ -24,7 +24,7 @@ void handleRoot() {
}
/** Redirect to captive portal if we got a request for another domain. Return true in that case so the page handler do not try to handle the request again. */
bool
ean
captivePortal
()
{
bool
captivePortal
()
{
if
(
!
isIp
(
server
.
hostHeader
())
&&
server
.
hostHeader
()
!=
(
String
(
myHostname
)
+
".local"
))
{
Serial
.
println
(
"Request redirected to captive portal"
);
server
.
sendHeader
(
"Location"
,
String
(
"http://"
)
+
toStringIp
(
server
.
client
().
localIP
()),
true
);
...
...
libraries/DNSServer/examples/CaptivePortalAdvanced/tools.ino
View file @
1160d7cd
/** Is this an IP? */
bool
ean
isIp
(
String
str
)
{
bool
isIp
(
String
str
)
{
for
(
size_t
i
=
0
;
i
<
str
.
length
();
i
++
)
{
int
c
=
str
.
charAt
(
i
);
if
(
c
!=
'.'
&&
(
c
<
'0'
||
c
>
'9'
))
{
...
...
libraries/SD/src/SD.h
View file @
1160d7cd
...
...
@@ -31,13 +31,13 @@
class
SDClass
{
public:
bool
ean
begin
(
uint8_t
csPin
,
HardwareSPI
&
spi
)
{
bool
begin
(
uint8_t
csPin
,
HardwareSPI
&
spi
)
{
SDFS
.
setConfig
(
SDFSConfig
(
csPin
,
SPI_HALF_SPEED
,
spi
));
return
(
boolean
)
SDFS
.
begin
();
return
SDFS
.
begin
();
}
bool
ean
begin
(
uint8_t
csPin
,
uint32_t
cfg
=
SPI_HALF_SPEED
,
HardwareSPI
&
spi
=
SPI
)
{
bool
begin
(
uint8_t
csPin
,
uint32_t
cfg
=
SPI_HALF_SPEED
,
HardwareSPI
&
spi
=
SPI
)
{
SDFS
.
setConfig
(
SDFSConfig
(
csPin
,
cfg
,
spi
));
return
(
boolean
)
SDFS
.
begin
();
return
SDFS
.
begin
();
}
void
end
(
bool
endSPI
=
true
)
{
...
...
@@ -63,43 +63,43 @@ public:
return
open
(
filename
.
c_str
(),
mode
);
}
bool
ean
exists
(
const
char
*
filepath
)
{
return
(
boolean
)
SDFS
.
exists
(
filepath
);
bool
exists
(
const
char
*
filepath
)
{
return
SDFS
.
exists
(
filepath
);
}
bool
ean
exists
(
const
String
&
filepath
)
{
return
(
boolean
)
SDFS
.
exists
(
filepath
.
c_str
());
bool
exists
(
const
String
&
filepath
)
{
return
SDFS
.
exists
(
filepath
.
c_str
());
}
bool
ean
rename
(
const
char
*
filepathfrom
,
const
char
*
filepathto
)
{
return
(
boolean
)
SDFS
.
rename
(
filepathfrom
,
filepathto
);
bool
rename
(
const
char
*
filepathfrom
,
const
char
*
filepathto
)
{
return
SDFS
.
rename
(
filepathfrom
,
filepathto
);
}
bool
ean
rename
(
const
String
&
filepathfrom
,
const
String
&
filepathto
)
{
return
(
boolean
)
rename
(
filepathfrom
.
c_str
(),
filepathto
.
c_str
());
bool
rename
(
const
String
&
filepathfrom
,
const
String
&
filepathto
)
{
return
rename
(
filepathfrom
.
c_str
(),
filepathto
.
c_str
());
}
bool
ean
mkdir
(
const
char
*
filepath
)
{
return
(
boolean
)
SDFS
.
mkdir
(
filepath
);
bool
mkdir
(
const
char
*
filepath
)
{
return
SDFS
.
mkdir
(
filepath
);
}
bool
ean
mkdir
(
const
String
&
filepath
)
{
return
(
boolean
)
SDFS
.
mkdir
(
filepath
.
c_str
());
bool
mkdir
(
const
String
&
filepath
)
{
return
SDFS
.
mkdir
(
filepath
.
c_str
());
}
bool
ean
remove
(
const
char
*
filepath
)
{
return
(
boolean
)
SDFS
.
remove
(
filepath
);
bool
remove
(
const
char
*
filepath
)
{
return
SDFS
.
remove
(
filepath
);
}
bool
ean
remove
(
const
String
&
filepath
)
{
bool
remove
(
const
String
&
filepath
)
{
return
remove
(
filepath
.
c_str
());
}
bool
ean
rmdir
(
const
char
*
filepath
)
{
return
(
boolean
)
SDFS
.
rmdir
(
filepath
);
bool
rmdir
(
const
char
*
filepath
)
{
return
SDFS
.
rmdir
(
filepath
);
}
bool
ean
rmdir
(
const
String
&
filepath
)
{
bool
rmdir
(
const
String
&
filepath
)
{
return
rmdir
(
filepath
.
c_str
());
}
...
...
libraries/WebServer/src/HTTPServer.cpp
View file @
1160d7cd
...
...
@@ -262,15 +262,15 @@ void HTTPServer::setContentLength(const size_t contentLength) {
_contentLength
=
contentLength
;
}
void
HTTPServer
::
enableDelay
(
bool
ean
value
)
{
void
HTTPServer
::
enableDelay
(
bool
value
)
{
_nullDelay
=
value
;
}
void
HTTPServer
::
enableCORS
(
bool
ean
value
)
{
void
HTTPServer
::
enableCORS
(
bool
value
)
{
_corsEnabled
=
value
;
}
void
HTTPServer
::
enableCrossOrigin
(
bool
ean
value
)
{
void
HTTPServer
::
enableCrossOrigin
(
bool
value
)
{
enableCORS
(
value
);
}
...
...
libraries/WebServer/src/HTTPServer.h
View file @
1160d7cd
...
...
@@ -146,9 +146,9 @@ public:
send
(
code
,
content_type
,
(
const
char
*
)
content
,
contentLength
);
}
void
enableDelay
(
bool
ean
value
);
void
enableCORS
(
bool
ean
value
=
true
);
void
enableCrossOrigin
(
bool
ean
value
=
true
);
void
enableDelay
(
bool
value
);
void
enableCORS
(
bool
value
=
true
);
void
enableCrossOrigin
(
bool
value
=
true
);
void
setContentLength
(
const
size_t
contentLength
);
void
sendHeader
(
const
String
&
name
,
const
String
&
value
,
bool
first
=
false
);
...
...
@@ -235,7 +235,7 @@ protected:
String
value
;
};
bool
ean
_corsEnabled
;
bool
_corsEnabled
;
WiFiClient
*
_currentClient
;
HTTPMethod
_currentMethod
;
...
...
@@ -243,7 +243,7 @@ protected:
uint8_t
_currentVersion
;
HTTPClientStatus
_currentStatus
;
unsigned
long
_statusChange
;
bool
ean
_nullDelay
;
bool
_nullDelay
;
RequestHandler
*
_currentHandler
;
RequestHandler
*
_firstHandler
;
...
...
libraries/WebServer/src/Parsing.cpp
View file @
1160d7cd
...
...
@@ -339,7 +339,7 @@ int HTTPServer::_uploadReadByte(WiFiClient* client) {
// keep trying until you either read a valid byte or timeout
unsigned
long
startMillis
=
millis
();
unsigned
long
timeoutIntervalMillis
=
client
->
getTimeout
();
bool
ean
timedOut
=
false
;
bool
timedOut
=
false
;
for
(;;)
{
if
(
!
client
->
connected
())
{
return
-
1
;
...
...
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