@@ -101,9 +101,9 @@ std::vector<MeshModule *> moduleFrames;
101101static char ourId[5 ];
102102
103103// vector where symbols (string) are displayed in bottom corner of display.
104- std::vector<std::string> functionSymbals ;
105- // string displayed in bottom right corner of display. Created from elements in functionSymbals vector
106- std::string functionSymbalString = " " ;
104+ std::vector<std::string> functionSymbol ;
105+ // string displayed in bottom right corner of display. Created from elements in functionSymbol vector
106+ std::string functionSymbolString = " " ;
107107
108108#if HAS_GPS
109109// GeoCoord object for the screen
@@ -243,10 +243,10 @@ static void drawWelcomeScreen(OLEDDisplay *display, OLEDDisplayUiState *state, i
243243static void drawFunctionOverlay (OLEDDisplay *display, OLEDDisplayUiState *state)
244244{
245245 // LOG_DEBUG("Draw function overlay");
246- if (functionSymbals .begin () != functionSymbals .end ()) {
246+ if (functionSymbol .begin () != functionSymbol .end ()) {
247247 char buf[64 ];
248248 display->setFont (FONT_SMALL);
249- snprintf (buf, sizeof (buf), " %s" , functionSymbalString .c_str ());
249+ snprintf (buf, sizeof (buf), " %s" , functionSymbolString .c_str ());
250250 display->drawString (SCREEN_WIDTH - display->getStringWidth (buf), SCREEN_HEIGHT - FONT_HEIGHT_SMALL, buf);
251251 }
252252}
@@ -2252,24 +2252,24 @@ void Screen::decreaseBrightness()
22522252 /* TO DO: add little popup in center of screen saying what brightness level it is set to*/
22532253}
22542254
2255- void Screen::setFunctionSymbal (std::string sym)
2255+ void Screen::setFunctionSymbol (std::string sym)
22562256{
2257- if (std::find (functionSymbals .begin (), functionSymbals .end (), sym) == functionSymbals .end ()) {
2258- functionSymbals .push_back (sym);
2259- functionSymbalString = " " ;
2260- for (auto symbol : functionSymbals ) {
2261- functionSymbalString = symbol + " " + functionSymbalString ;
2257+ if (std::find (functionSymbol .begin (), functionSymbol .end (), sym) == functionSymbol .end ()) {
2258+ functionSymbol .push_back (sym);
2259+ functionSymbolString = " " ;
2260+ for (auto symbol : functionSymbol ) {
2261+ functionSymbolString = symbol + " " + functionSymbolString ;
22622262 }
22632263 setFastFramerate ();
22642264 }
22652265}
22662266
2267- void Screen::removeFunctionSymbal (std::string sym)
2267+ void Screen::removeFunctionSymbol (std::string sym)
22682268{
2269- functionSymbals .erase (std::remove (functionSymbals .begin (), functionSymbals .end (), sym), functionSymbals .end ());
2270- functionSymbalString = " " ;
2271- for (auto symbol : functionSymbals ) {
2272- functionSymbalString = symbol + " " + functionSymbalString ;
2269+ functionSymbol .erase (std::remove (functionSymbol .begin (), functionSymbol .end (), sym), functionSymbol .end ());
2270+ functionSymbolString = " " ;
2271+ for (auto symbol : functionSymbol ) {
2272+ functionSymbolString = symbol + " " + functionSymbolString ;
22732273 }
22742274 setFastFramerate ();
22752275}
0 commit comments