Skip to content

Commit 321e217

Browse files
tbowmotekka007
authored andcommitted
Boolean should be bool (#492)
Standard c++ is to use type bool, not boolean
1 parent e086ba3 commit 321e217

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

libraries/MySensors/core/MyGatewayTransportEthernet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ typedef struct
7676
// On W5100 boards with SPI_EN exposed we can use the real SPI bus together with radio
7777
// (if we enable it during usage)
7878
#ifdef MY_W5100_SPI_EN
79-
void _w5100_spi_en(boolean enable)
79+
void _w5100_spi_en(bool enable)
8080
{
8181
if (enable)
8282
{

libraries/MySensors/core/MyInclusionMode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ inline void inclusionInit() {
3333
}
3434

3535

36-
void inclusionModeSet(boolean newMode) {
36+
void inclusionModeSet(bool newMode) {
3737
if (newMode != _inclusionMode) {
3838
_inclusionMode = newMode;
3939
// Send back mode change to controller

libraries/MySensors/core/MyInclusionMode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
extern bool gatewayTransportSend(MyMessage &message);
2727

2828
void inclusionInit();
29-
void inclusionModeSet(boolean newMode);
29+
void inclusionModeSet(bool newMode);
3030
void inclusionProcess();
3131

3232

libraries/MySensors/core/MySensorsCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NodeConfig _nc; // Essential settings for node to work
2424
MyMessage _msg; // Buffer for incoming messages.
2525
MyMessage _msgTmp; // Buffer for temporary messages (acks and nonces among others).
2626

27-
boolean _nodeRegistered = false;
27+
bool _nodeRegistered = false;
2828

2929
#if defined(MY_DEBUG)
3030
char _convBuf[MAX_PAYLOAD*2+1];
@@ -231,7 +231,7 @@ ControllerConfig getConfig() {
231231
}
232232

233233

234-
boolean _sendRoute(MyMessage &message) {
234+
bool _sendRoute(MyMessage &message) {
235235
#if defined(MY_CORE_ONLY)
236236
(void)message;
237237
#endif

libraries/MySensors/core/MySensorsCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ void _infiniteLoop();
247247

248248
void _registerNode();
249249

250-
boolean _sendRoute(MyMessage &message);
250+
bool _sendRoute(MyMessage &message);
251251

252252
extern NodeConfig _nc;
253253
extern MyMessage _msg; // Buffer for incoming messages.

libraries/MySensors/core/MyTransportRS485.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void _serialReset(){
126126
// our station ID, then look for a registered command that matches the
127127
// command code. If all the above is true, execute the command's
128128
// function.
129-
boolean _serialProcess()
129+
bool _serialProcess()
130130
{
131131
char inch;
132132
unsigned char i;

0 commit comments

Comments
 (0)