From a335f6b521e71e127acf9949d2ff8e2b4f53f629 Mon Sep 17 00:00:00 2001 From: zxystd <1051244836@qq.com> Date: Sat, 28 Aug 2021 11:47:52 +0800 Subject: [PATCH] Expand but size. --- IntelBluetoothFirmware/BtIntelVSC.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IntelBluetoothFirmware/BtIntelVSC.cpp b/IntelBluetoothFirmware/BtIntelVSC.cpp index ef06cef..a800de2 100644 --- a/IntelBluetoothFirmware/BtIntelVSC.cpp +++ b/IntelBluetoothFirmware/BtIntelVSC.cpp @@ -111,7 +111,7 @@ readVersion(IntelVersion *version) bool BtIntel:: sendIntelReset(uint32_t bootParam) { - uint8_t buf[11]; + uint8_t buf[CMD_BUF_MAX_SIZE]; IntelReset params = { 0x00, 0x01, 0x00, 0x01, 0x00000000 }; @@ -181,7 +181,7 @@ resetToBootloader() { XYLog("%s\n", __FUNCTION__); bool ret; - uint8_t buf[11]; + uint8_t buf[CMD_BUF_MAX_SIZE]; HciCommandHdr *cmd = (HciCommandHdr *)buf; IntelReset params; @@ -225,7 +225,7 @@ resetToBootloader() bool BtIntel:: readDebugFeatures(IntelDebugFeatures *features) { - uint8_t buf[CMD_BUF_MAX_SIZE], temp[40]; + uint8_t buf[CMD_BUF_MAX_SIZE], temp[CMD_BUF_MAX_SIZE]; uint actLen = 0; HciCommandHdr *cmd = (HciCommandHdr *)buf; HciResponse *resp = (HciResponse *)temp;