Skip to content

Commit

Permalink
Replace boolean with standard bool (#42)
Browse files Browse the repository at this point in the history
arduino/Arduino#4673

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
  • Loading branch information
fpistm authored Dec 14, 2021
1 parent f6b7952 commit c8de775
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Peripheral/ButtonLED/ButtonLED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void loop() {
char buttonValue = digitalRead(buttonPin);

// has the value changed since the last read
boolean buttonChanged = (buttonCharacteristic.value() != buttonValue);
bool buttonChanged = (buttonCharacteristic.value() != buttonValue);

if (buttonChanged) {
// button state changed, update characteristics
Expand Down
2 changes: 1 addition & 1 deletion src/BLETypedCharacteristics.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BLEBoolCharacteristic : public BLETypedCharacteristic<bool> {
BLEBoolCharacteristic(const char* uuid, unsigned char properties);
};

class BLEBooleanCharacteristic : public BLETypedCharacteristic<boolean> {
class BLEBooleanCharacteristic : public BLETypedCharacteristic<bool> {
public:
BLEBooleanCharacteristic(const char* uuid, unsigned char properties);
};
Expand Down
2 changes: 1 addition & 1 deletion src/utility/ATT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ void ATTClass::readByTypeResp(uint16_t connectionHandle, uint8_t dlen, uint8_t d

void ATTClass::writeReqOrCmd(uint16_t connectionHandle, uint16_t mtu, uint8_t op, uint8_t dlen, uint8_t data[])
{
boolean withResponse = (op == ATT_OP_WRITE_REQ);
bool withResponse = (op == ATT_OP_WRITE_REQ);

if (dlen < sizeof(uint16_t)) {
if (withResponse) {
Expand Down

0 comments on commit c8de775

Please sign in to comment.