From 68fadfe26cfd4f8332c3ab416a911c58a01494ec Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Tue, 18 Jan 2022 06:13:43 +0000 Subject: [PATCH] change name of define because MAX_BLOCKSIZE is already taken --- src/esp32/BluetoothSoftwareUpdate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/esp32/BluetoothSoftwareUpdate.cpp b/src/esp32/BluetoothSoftwareUpdate.cpp index 870d20ff..d097e95f 100644 --- a/src/esp32/BluetoothSoftwareUpdate.cpp +++ b/src/esp32/BluetoothSoftwareUpdate.cpp @@ -58,7 +58,7 @@ int update_size_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_ return 0; } -#define MAX_BLOCKSIZE 512 +#define MAX_BLOCKSIZE_FOR_BT 512 /// Handle writes to data int update_data_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg) @@ -66,7 +66,7 @@ int update_data_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_ concurrency::LockGuard g(updateLock); static uint8_t - data[MAX_BLOCKSIZE]; // we temporarily copy here because I'm worried that a fast sender might be able overwrite srcbuf + data[MAX_BLOCKSIZE_FOR_BT]; // we temporarily copy here because I'm worried that a fast sender might be able overwrite srcbuf uint16_t len = 0;