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