diff --git a/libs/BLEKit/include/BLEServiceFileExchange.h b/libs/BLEKit/include/BLEServiceFileExchange.h index 6402728428..7f645e7778 100644 --- a/libs/BLEKit/include/BLEServiceFileExchange.h +++ b/libs/BLEKit/include/BLEServiceFileExchange.h @@ -129,8 +129,8 @@ class BLEServiceFileExchange : public interface::BLEService GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY}; std::function _on_clear_file_requested_callback {}; - std::array file_reception_buffer {}; - WriteOnlyArrayGattCharacteristic file_reception_buffer_characteristic { + std::array file_reception_buffer {}; + WriteOnlyArrayGattCharacteristic file_reception_buffer_characteristic { service::file_exchange::characteristic::file_reception_buffer, file_reception_buffer.begin()}; std::array file_sha256 {}; diff --git a/libs/FileManagerKit/include/FileReception.h b/libs/FileManagerKit/include/FileReception.h index cfdaaf2564..7cdc6f5241 100644 --- a/libs/FileManagerKit/include/FileReception.h +++ b/libs/FileManagerKit/include/FileReception.h @@ -32,7 +32,7 @@ class FileReception CoreEventQueue event_queue {}; CircularQueue _circular_queue {}; - std::array _buffer {}; + std::array _buffer {}; }; } // namespace leka