MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / ResetCustomApps

Function ResetCustomApps

src/DisplayManager.cpp:1148–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146}
1147
1148void ResetCustomApps()
1149{
1150 if (customApps.empty())
1151 {
1152 return;
1153 }
1154
1155 for (auto it = customApps.begin(); it != customApps.end(); ++it)
1156 {
1157 CustomApp &app = it->second;
1158 if (app.name != currentCustomApp)
1159 {
1160 app.iconWasPushed = false;
1161 app.scrollposition = (app.icon ? 9 : 0) + app.textOffset;
1162 app.iconPosition = 0;
1163 app.scrollDelay = 0;
1164 app.currentRepeat = 0;
1165 app.icon.close();
1166 app.currentFrame = 0;
1167 }
1168 }
1169}
1170
1171void checkLifetime(uint8_t pos)
1172{

Callers 1

tickMethod · 0.85

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected