Rename SD record variables: "free"/"recorded" -> "available"

This commit is contained in:
Jared Boone 2016-05-11 11:50:40 -07:00
parent b2322370a9
commit 7d3e697ea8
2 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ RecordView::RecordView(
&button_record,
&text_record_filename,
&text_record_dropped,
&text_time_recorded,
&text_time_available,
} });
button_record.on_select = [this](ImageButton&) {
@ -249,8 +249,8 @@ void RecordView::on_tick_second() {
const auto space_info = std::filesystem::space("");
const uint32_t bytes_per_second = file_type == FileType::WAV ? (sampling_rate * 2) : (sampling_rate * 4);
const uint32_t free_seconds = space_info.free / bytes_per_second;
text_time_recorded.set(to_string_dec_uint(free_seconds, 6, ' ') + "s");
const uint32_t available_seconds = space_info.free / bytes_per_second;
text_time_available.set(to_string_dec_uint(available_seconds, 6, ' ') + "s");
}
}

View File

@ -95,7 +95,7 @@ private:
"",
};
Text text_time_recorded {
Text text_time_available {
{ 23 * 8, 0 * 16, 7 * 8, 16 },
"",
};