Boolean should be bool (#492)
Standard c++ is to use type bool, not boolean
This commit is contained in:
@@ -76,7 +76,7 @@ typedef struct
|
|||||||
// On W5100 boards with SPI_EN exposed we can use the real SPI bus together with radio
|
// On W5100 boards with SPI_EN exposed we can use the real SPI bus together with radio
|
||||||
// (if we enable it during usage)
|
// (if we enable it during usage)
|
||||||
#ifdef MY_W5100_SPI_EN
|
#ifdef MY_W5100_SPI_EN
|
||||||
void _w5100_spi_en(boolean enable)
|
void _w5100_spi_en(bool enable)
|
||||||
{
|
{
|
||||||
if (enable)
|
if (enable)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ inline void inclusionInit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void inclusionModeSet(boolean newMode) {
|
void inclusionModeSet(bool newMode) {
|
||||||
if (newMode != _inclusionMode) {
|
if (newMode != _inclusionMode) {
|
||||||
_inclusionMode = newMode;
|
_inclusionMode = newMode;
|
||||||
// Send back mode change to controller
|
// Send back mode change to controller
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
extern bool gatewayTransportSend(MyMessage &message);
|
extern bool gatewayTransportSend(MyMessage &message);
|
||||||
|
|
||||||
void inclusionInit();
|
void inclusionInit();
|
||||||
void inclusionModeSet(boolean newMode);
|
void inclusionModeSet(bool newMode);
|
||||||
void inclusionProcess();
|
void inclusionProcess();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ NodeConfig _nc; // Essential settings for node to work
|
|||||||
MyMessage _msg; // Buffer for incoming messages.
|
MyMessage _msg; // Buffer for incoming messages.
|
||||||
MyMessage _msgTmp; // Buffer for temporary messages (acks and nonces among others).
|
MyMessage _msgTmp; // Buffer for temporary messages (acks and nonces among others).
|
||||||
|
|
||||||
boolean _nodeRegistered = false;
|
bool _nodeRegistered = false;
|
||||||
|
|
||||||
#if defined(MY_DEBUG)
|
#if defined(MY_DEBUG)
|
||||||
char _convBuf[MAX_PAYLOAD*2+1];
|
char _convBuf[MAX_PAYLOAD*2+1];
|
||||||
@@ -231,7 +231,7 @@ ControllerConfig getConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
boolean _sendRoute(MyMessage &message) {
|
bool _sendRoute(MyMessage &message) {
|
||||||
#if defined(MY_CORE_ONLY)
|
#if defined(MY_CORE_ONLY)
|
||||||
(void)message;
|
(void)message;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ void _infiniteLoop();
|
|||||||
|
|
||||||
void _registerNode();
|
void _registerNode();
|
||||||
|
|
||||||
boolean _sendRoute(MyMessage &message);
|
bool _sendRoute(MyMessage &message);
|
||||||
|
|
||||||
extern NodeConfig _nc;
|
extern NodeConfig _nc;
|
||||||
extern MyMessage _msg; // Buffer for incoming messages.
|
extern MyMessage _msg; // Buffer for incoming messages.
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ void _serialReset(){
|
|||||||
// our station ID, then look for a registered command that matches the
|
// our station ID, then look for a registered command that matches the
|
||||||
// command code. If all the above is true, execute the command's
|
// command code. If all the above is true, execute the command's
|
||||||
// function.
|
// function.
|
||||||
boolean _serialProcess()
|
bool _serialProcess()
|
||||||
{
|
{
|
||||||
char inch;
|
char inch;
|
||||||
unsigned char i;
|
unsigned char i;
|
||||||
|
|||||||
Reference in New Issue
Block a user