Factor out SD card write size.

This commit is contained in:
Jared Boone 2016-03-27 22:47:48 -07:00
parent f94938db8e
commit aca19ae997

View File

@ -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;
} }