diff options
author | Ryan Klaassen <ryan.klaassen@multitech.com> | 2016-08-18 10:53:14 -0500 |
---|---|---|
committer | Ryan Klaassen <ryan.klaassen@multitech.com> | 2016-08-18 10:53:14 -0500 |
commit | 945c195b31bed7bd1e5e71842673f7b2deaf7613 (patch) | |
tree | c96649b9c05217066c4749dfde8ebebfcd7ebf71 | |
parent | de5649ac9c2c3ba38db037178c329a9f596ac9e6 (diff) | |
download | mtdot-box-evb-factory-firmware-945c195b31bed7bd1e5e71842673f7b2deaf7613.tar.gz mtdot-box-evb-factory-firmware-945c195b31bed7bd1e5e71842673f7b2deaf7613.tar.bz2 mtdot-box-evb-factory-firmware-945c195b31bed7bd1e5e71842673f7b2deaf7613.zip |
Replace LayoutSurveyGps.cpp
-rw-r--r-- | Layout/LayoutSurveyGps.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Layout/LayoutSurveyGps.cpp b/Layout/LayoutSurveyGps.cpp index 69924ea..9974cac 100644 --- a/Layout/LayoutSurveyGps.cpp +++ b/Layout/LayoutSurveyGps.cpp @@ -92,31 +92,13 @@ void LayoutSurveyGps::display(bool success, mDot::snr_stats snr, mDot::rssi_stat endUpdate(); } -void LayoutSurveyGps::updateSw1(string Sw1, string Sw2, int dr, int power, int padding){ - size_t size; - char buf[17]; +void LayoutSurveyGps::updateSw1(string Sw1, string Sw2){ string temp; for(int i = Sw1.size(); i<4; i++){ temp+=" "; } temp+=Sw1; writeField(_fSw1, temp, true); - startUpdate(); - - if(Sw2 == "Data Rate") { - memset(buf, 0, sizeof(buf)); - size = snprintf(buf, sizeof(buf), "%d", dr); - writeField(_fDr, buf, size, true); - } else if(Sw2 == "Power") { - memset(buf, 0, sizeof(buf)); - size = snprintf(buf, sizeof(buf), "%d", power); - writeField(_fPower, buf, size, true); - } else if(Sw2 == "Padding") { - memset(buf, 0, sizeof(buf)); - size = snprintf(buf, sizeof(buf), "%d", padding); - writeField(_fPadding, buf, size, true); - } - endUpdate(); } void LayoutSurveyGps::updateSw2(string Sw2){ @@ -181,4 +163,4 @@ void LayoutSurveyGps::updateStats(bool GPS, GPSPARSER::longitude lon, GPSPARSER: size = snprintf(buf, sizeof(buf), "%.1f", temp); writeField(_fTemp, buf, size, true); endUpdate(); -}
\ No newline at end of file +} |