Boolean should be bool (#492)

Standard c++ is to use type bool, not boolean
This commit is contained in:
Thomas Mørch
2016-06-29 19:29:46 +02:00
committed by Olivier
parent e086ba3203
commit 321e217e0b
6 changed files with 7 additions and 7 deletions
@@ -76,7 +76,7 @@ typedef struct
// On W5100 boards with SPI_EN exposed we can use the real SPI bus together with radio
// (if we enable it during usage)
#ifdef MY_W5100_SPI_EN
void _w5100_spi_en(boolean enable)
void _w5100_spi_en(bool enable)
{
if (enable)
{
+1 -1
View File
@@ -33,7 +33,7 @@ inline void inclusionInit() {
}
void inclusionModeSet(boolean newMode) {
void inclusionModeSet(bool newMode) {
if (newMode != _inclusionMode) {
_inclusionMode = newMode;
// Send back mode change to controller
+1 -1
View File
@@ -26,7 +26,7 @@
extern bool gatewayTransportSend(MyMessage &message);
void inclusionInit();
void inclusionModeSet(boolean newMode);
void inclusionModeSet(bool newMode);
void inclusionProcess();
+2 -2
View File
@@ -24,7 +24,7 @@ NodeConfig _nc; // Essential settings for node to work
MyMessage _msg; // Buffer for incoming messages.
MyMessage _msgTmp; // Buffer for temporary messages (acks and nonces among others).
boolean _nodeRegistered = false;
bool _nodeRegistered = false;
#if defined(MY_DEBUG)
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)
(void)message;
#endif
+1 -1
View File
@@ -247,7 +247,7 @@ void _infiniteLoop();
void _registerNode();
boolean _sendRoute(MyMessage &message);
bool _sendRoute(MyMessage &message);
extern NodeConfig _nc;
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
// command code. If all the above is true, execute the command's
// function.
boolean _serialProcess()
bool _serialProcess()
{
char inch;
unsigned char i;