Skip to content

Commit c8de775

Browse files
authored
Replace boolean with standard bool (#42)
arduino/Arduino#4673 Signed-off-by: Frederic Pillon <[email protected]>
1 parent f6b7952 commit c8de775

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/Peripheral/ButtonLED/ButtonLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void loop() {
7272
char buttonValue = digitalRead(buttonPin);
7373

7474
// has the value changed since the last read
75-
boolean buttonChanged = (buttonCharacteristic.value() != buttonValue);
75+
bool buttonChanged = (buttonCharacteristic.value() != buttonValue);
7676

7777
if (buttonChanged) {
7878
// button state changed, update characteristics

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
};

src/utility/ATT.cpp

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

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

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

0 commit comments

Comments
 (0)