From 2fcda9c1da28f42ad9eb68b7318f8199f4d71050 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 14 Nov 2020 14:17:48 +0000 Subject: [PATCH] Silly typo --- src/utility/HCI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility/HCI.cpp b/src/utility/HCI.cpp index aa877f6c..51366db3 100644 --- a/src/utility/HCI.cpp +++ b/src/utility/HCI.cpp @@ -427,7 +427,7 @@ int HCIClass::sendAclPkt(uint16_t handle, uint8_t cid, uint8_t plen, void* data) uint16_t cid; } aclHdr = { HCI_ACLDATA_PKT, handle, uint8_t(plen + 4), plen, cid }; - uint8_t *txBuffer = uint8_t*malloc(sizeof(aclHdr) + plen); + uint8_t* txBuffer = (uint8_t*)malloc(sizeof(aclHdr) + plen); memcpy(txBuffer, &aclHdr, sizeof(aclHdr)); memcpy(&txBuffer[sizeof(aclHdr)], data, plen); @@ -470,7 +470,7 @@ int HCIClass::sendCommand(uint16_t opcode, uint8_t plen, void* parameters) uint8_t plen; } pktHdr = {HCI_COMMAND_PKT, opcode, plen}; - uint8_t *txBuffer = uint8_t*malloc(sizeof(pktHdr) + plen); + uint8_t* txBuffer = (uint8_t*)malloc(sizeof(pktHdr) + plen); memcpy(txBuffer, &pktHdr, sizeof(pktHdr)); memcpy(&txBuffer[sizeof(pktHdr)], parameters, plen);