Extract baseband stats into separate widget

Also removed baseband saturation indication on red (TX) LED. A saturation indicator needs to live somewhere else, and be thought out a bit more...
This commit is contained in:
Jared Boone 2015-07-09 11:53:10 -07:00
parent 7c9fc62f5e
commit 154b40d3c9
4 changed files with 56 additions and 38 deletions

View file

@ -32,6 +32,27 @@
namespace ui {
class BasebandStatsView : public View {
public:
BasebandStatsView();
void on_show() override;
void on_hide() override;
private:
Text text_used {
{ 0, 0, 7 * 8, 1 * 16 },
"",
};
Text text_idle {
{ 8 * 8, 0, 7 * 8, 1 * 16 },
"",
};
void on_statistics_update(const BasebandStatistics& statistics);
};
class DebugMemoryView : public View {
public:
DebugMemoryView(NavigationView& nav);