From 44fb66b4f96c3044d8bbd5ed9969ee7476d2673b Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 21 Jun 2016 11:35:15 -0700 Subject: [PATCH] Rename UIRecordView::on_tick_second() -> update_status_display(). --- firmware/application/ui_record_view.cpp | 4 ++++ firmware/application/ui_record_view.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/firmware/application/ui_record_view.cpp b/firmware/application/ui_record_view.cpp index 02f64a01..cdc9d7aa 100644 --- a/firmware/application/ui_record_view.cpp +++ b/firmware/application/ui_record_view.cpp @@ -317,6 +317,10 @@ Optional RecordView::write_metadata_file(const std::string& filenam } void RecordView::on_tick_second() { + update_status_display(); +} + +void RecordView::update_status_display() { if( is_active() ) { const auto dropped_percent = std::min(99U, capture_thread->state().dropped_percent()); const auto s = to_string_dec_uint(dropped_percent, 2, ' ') + "\%"; diff --git a/firmware/application/ui_record_view.hpp b/firmware/application/ui_record_view.hpp index 85d6e26c..c0d8bc5d 100644 --- a/firmware/application/ui_record_view.hpp +++ b/firmware/application/ui_record_view.hpp @@ -67,6 +67,7 @@ private: Optional write_metadata_file(const std::string& filename); void on_tick_second(); + void update_status_display(); void handle_error(const File::Error error);