Skip to content

Commit 2675445

Browse files
authored
[ESP32] Fix the compilation error in nimble/blemanager (project-chip#35815)
1 parent c3ac26e commit 2675445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/ESP32/nimble/BLEManagerImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ void BLEManagerImpl::HandleC3CharRead(struct ble_gatt_char_context * param)
15631563
additionalDataFields);
15641564
SuccessOrExit(err);
15651565

1566-
os_mbuf_append(param->ctxt->om, bufferHandle->Start(), bufferHandle->DataLength());
1566+
os_mbuf_append(param->ctxt->om, bufferHandle->Start(), static_cast<uint16_t>(bufferHandle->DataLength()));
15671567

15681568
exit:
15691569
if (err != CHIP_NO_ERROR)

0 commit comments

Comments
 (0)