Skip to content

Commit 2f22ce9

Browse files
committed
Replace boolean with standard bool
arduino/Arduino#4673 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 02ff3a6 commit 2f22ce9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: examples/Peripheral/ButtonLED/ButtonLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void loop() {
104104
char buttonValue = digitalRead(buttonPin);
105105

106106
// has the value changed since the last read
107-
boolean buttonChanged = (buttonCharacteristic.value() != buttonValue);
107+
bool buttonChanged = (buttonCharacteristic.value() != buttonValue);
108108

109109
if (buttonChanged) {
110110
// button state changed, update characteristics

Diff for: src/BLETypedCharacteristics.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class BLEBoolCharacteristic : public BLETypedCharacteristic<bool> {
2727
BLEBoolCharacteristic(const char* uuid, unsigned char properties);
2828
};
2929

30-
class BLEBooleanCharacteristic : public BLETypedCharacteristic<boolean> {
30+
class BLEBooleanCharacteristic : public BLETypedCharacteristic<bool> {
3131
public:
3232
BLEBooleanCharacteristic(const char* uuid, unsigned char properties);
3333
};

Diff for: src/utility/ATT.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ void ATTClass::readByTypeResp(uint16_t connectionHandle, uint8_t dlen, uint8_t d
11421142

11431143
void ATTClass::writeReqOrCmd(uint16_t connectionHandle, uint16_t mtu, uint8_t op, uint8_t dlen, uint8_t data[])
11441144
{
1145-
boolean withResponse = (op == ATT_OP_WRITE_REQ);
1145+
bool withResponse = (op == ATT_OP_WRITE_REQ);
11461146

11471147
if (dlen < sizeof(uint16_t)) {
11481148
if (withResponse) {

0 commit comments

Comments
 (0)