Skip to content

Commit

Permalink
⚡ (FileReception): Increase size of buffers from 128 to 256
Browse files Browse the repository at this point in the history
  • Loading branch information
YannLocatelli committed Mar 19, 2024
1 parent 3e025e8 commit 39ca5d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/BLEKit/include/BLEServiceFileExchange.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class BLEServiceFileExchange : public interface::BLEService
GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY};
std::function<void()> _on_clear_file_requested_callback {};

std::array<uint8_t, 128> file_reception_buffer {};
WriteOnlyArrayGattCharacteristic<uint8_t, 128> file_reception_buffer_characteristic {
std::array<uint8_t, 256> file_reception_buffer {};
WriteOnlyArrayGattCharacteristic<uint8_t, 256> file_reception_buffer_characteristic {
service::file_exchange::characteristic::file_reception_buffer, file_reception_buffer.begin()};

std::array<uint8_t, 32> file_sha256 {};
Expand Down
2 changes: 1 addition & 1 deletion libs/FileManagerKit/include/FileReception.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FileReception
CoreEventQueue event_queue {};

CircularQueue<uint8_t, 1024> _circular_queue {};
std::array<uint8_t, 128> _buffer {};
std::array<uint8_t, 256> _buffer {};
};

} // namespace leka

0 comments on commit 39ca5d8

Please sign in to comment.