We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e3eced commit ede91b3Copy full SHA for ede91b3
src/platform/Linux/BLEManagerImpl.cpp
@@ -557,8 +557,8 @@ void BLEManagerImpl::HandleTXCharCCCDWrite(BLE_CONNECTION_OBJECT conId)
557
558
// Post an event to the Chip queue to process either a CHIPoBLE Subscribe or Unsubscribe based on
559
// whether the client is enabling or disabling indications.
560
- ChipDeviceEvent event{ .Type = conId->IsNotifyAcquired() ? DeviceEventType::kCHIPoBLESubscribe
561
- : DeviceEventType::kCHIPoBLEUnsubscribe,
+ ChipDeviceEvent event{ .Type = conId->IsNotifyAcquired() ? static_cast<uint16_t>(DeviceEventType::kCHIPoBLESubscribe)
+ : static_cast<uint16_t>(DeviceEventType::kCHIPoBLEUnsubscribe),
562
.CHIPoBLESubscribe = { .ConId = conId } };
563
PlatformMgr().PostEventOrDie(&event);
564
0 commit comments