mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-02-28 22:57:20 +00:00
Factor out SD card write size.
This commit is contained in:
parent
f94938db8e
commit
aca19ae997
@ -71,6 +71,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
static constexpr size_t write_size = 4096;
|
||||
const std::string file_path;
|
||||
|
||||
File file;
|
||||
@ -84,7 +85,7 @@ private:
|
||||
}
|
||||
|
||||
void run() {
|
||||
auto write_buffer = std::make_unique<std::array<uint8_t, 4096>>();
|
||||
auto write_buffer = std::make_unique<std::array<uint8_t, write_size>>();
|
||||
if( !write_buffer ) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user