From b30884816bd4af4e435c265d0e061c900e25ae88 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Mon, 23 Nov 2015 14:16:44 -0600 Subject: display product id on startup screen, change baud rates to 115k, set log level to trace --- Layout/LayoutStartup.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Layout/LayoutStartup.cpp') diff --git a/Layout/LayoutStartup.cpp b/Layout/LayoutStartup.cpp index 850ea50..2922035 100644 --- a/Layout/LayoutStartup.cpp +++ b/Layout/LayoutStartup.cpp @@ -1,13 +1,16 @@ #include "LayoutStartup.h" #include "MultiTech_Logo.h" #include "version.h" +#include "MTSText.h" -LayoutStartup::LayoutStartup(DOGS102* lcd) +LayoutStartup::LayoutStartup(DOGS102* lcd, mDot* dot) : Layout(lcd), + _dot(dot), _lName(0, 3, "MTDOT-BOX/EVB"), _lInfo(0, 4, "Factory Firmware"), _lVersion(0, 5, "Version"), _fVersion(8, 5, 9), + _fId(0, 6, 17), _iLogo(0, 0, MultiTech_Logo) {} @@ -15,6 +18,7 @@ LayoutStartup::~LayoutStartup() {} void LayoutStartup::display() { std::string version = MTDOT_BOX_VERSION; + std::string id = mts::Text::bin2hexString(_dot->getDeviceId()); clear(); startUpdate(); @@ -24,6 +28,7 @@ void LayoutStartup::display() { writeLabel(_lInfo); writeLabel(_lVersion); writeField(_fVersion, version); + writeField(_fId, id); endUpdate(); } -- cgit v1.2.3