| 50 | } |
| 51 | |
| 52 | bool StartupApp::startApp(const String &appName) const { |
| 53 | auto it = _startupApps.find(appName); |
| 54 | if (it == _startupApps.end()) { |
| 55 | Serial.println("Invalid startup app: " + appName); |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | it->second(); |
| 60 | |
| 61 | delay(200); |
| 62 | tft.fillScreen(bruceConfig.bgColor); |
| 63 | |
| 64 | return true; |
| 65 | } |
| 66 | |
| 67 | std::vector<String> StartupApp::getAppNames() const { |
| 68 | std::vector<String> keys; |
no test coverage detected