Skip to content

Commit

Permalink
fix minor diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
hnnajh committed Dec 15, 2020
1 parent 9bd6414 commit 88fb69c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
7 changes: 0 additions & 7 deletions src/ble/BLEEndPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,6 @@ void BLEEndPoint::FinalizeClose(uint8_t oldState, uint8_t flags, BLE_ERROR err)
// If unsubscribe fails, release BLE connection and free end point immediately.
Free();
}
if (!mBle->mPlatformDelegate->UnsubscribeCharacteristic(mConnObj, &CHIP_BLE_SVC_ID, &mBle->CHIP_BLE_CHAR_3_ID))
{
ChipLogError(Ble, "BtpEngine unsub failed");

// If unsubscribe fails, release BLE connection and free end point immediately.
Free();
}
else if (mConnObj != BLE_CONNECTION_UNINITIALIZED)
{
// Unsubscribe request was sent successfully, and a confirmation wasn't spontaneously generated or
Expand Down
6 changes: 3 additions & 3 deletions src/ble/BleLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ const ChipBleUUID BleLayer::CHIP_BLE_CHAR_2_ID = { { // 18EE2EF5-263D-4559-959F-
0x18, 0xEE, 0x2E, 0xF5, 0x26, 0x3D, 0x45, 0x59, 0x95, 0x9F, 0x4F, 0x9C, 0x42,
0x9F, 0x9D, 0x12 } };

const ChipBleUUID BleLayer::CHIP_BLE_CHAR_3_ID = { { // 18EE2EF5-263D-4559-959F-4F9C429F9D13
0x18, 0xEE, 0x2E, 0xF5, 0x26, 0x3D, 0x45, 0x59, 0x95, 0x9F, 0x4F, 0x9C, 0x42,
0x9F, 0x9D, 0x13 } };
const ChipBleUUID BleLayer::CHIP_BLE_CHAR_3_ID = { { // 64630238-8772-45F2-B87D-748A83218F04
0x64, 0x63, 0x02, 0x38, 0x87, 0x72, 0x45, 0xF2, 0xB8, 0x7D, 0x74, 0x8A, 0x83,
0x21, 0x8F, 0x04 } };

void BleLayerObject::Release()
{
Expand Down
6 changes: 2 additions & 4 deletions src/lib/core/CHIPTLVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1367,15 +1367,13 @@ CHIP_ERROR TLVReader::VerifyElement()
}
else
{
if (mElemTag == UnknownImplicitTag) {
if (mElemTag == UnknownImplicitTag)
return CHIP_ERROR_UNKNOWN_IMPLICIT_TLV_TAG;
}
switch (mContainerType)
{
case kTLVType_NotSpecified:
if (IsContextTag(mElemTag)) {
if (IsContextTag(mElemTag))
return CHIP_ERROR_INVALID_TLV_TAG;
}
break;
case kTLVType_Structure:
if (mElemTag == AnonymousTag)
Expand Down
2 changes: 1 addition & 1 deletion src/platform/Linux/CHIPBluezHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace Internal {

#define CHIP_PLAT_BLE_UUID_C1_STRING "18ee2ef5-263d-4559-959f-4f9c429f9d11"
#define CHIP_PLAT_BLE_UUID_C2_STRING "18ee2ef5-263d-4559-959f-4f9c429f9d12"
#define CHIP_PLAT_BLE_UUID_C3_STRING "18ee2ef5-263d-4559-959f-4f9c429f9d13"
#define CHIP_PLAT_BLE_UUID_C3_STRING "64630238-8772-45F2-B87D-748A83218F04"

#define CHIP_BLE_BASE_SERVICE_UUID_STRING "-0000-1000-8000-00805f9b34fb"
#define CHIP_BLE_SERVICE_PREFIX_LENGTH 8
Expand Down
2 changes: 1 addition & 1 deletion third_party/pigweed/repo
Submodule repo updated from 5a4db0 to e65ddc

0 comments on commit 88fb69c

Please sign in to comment.