Skip to content

Commit ede91b3

Browse files
committed
Add enum->int cast
1 parent 6e3eced commit ede91b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/Linux/BLEManagerImpl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ void BLEManagerImpl::HandleTXCharCCCDWrite(BLE_CONNECTION_OBJECT conId)
557557

558558
// Post an event to the Chip queue to process either a CHIPoBLE Subscribe or Unsubscribe based on
559559
// whether the client is enabling or disabling indications.
560-
ChipDeviceEvent event{ .Type = conId->IsNotifyAcquired() ? DeviceEventType::kCHIPoBLESubscribe
561-
: DeviceEventType::kCHIPoBLEUnsubscribe,
560+
ChipDeviceEvent event{ .Type = conId->IsNotifyAcquired() ? static_cast<uint16_t>(DeviceEventType::kCHIPoBLESubscribe)
561+
: static_cast<uint16_t>(DeviceEventType::kCHIPoBLEUnsubscribe),
562562
.CHIPoBLESubscribe = { .ConId = conId } };
563563
PlatformMgr().PostEventOrDie(&event);
564564

0 commit comments

Comments
 (0)