mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-03 11:45:44 -04:00
Which Module wants a UI Frame? (#4967)
Previously our debug message for screens blandly stated "Module wants a UI Frame" This patch replaces the word Module with the name of the Module in need of a frame a frame, enhancing debugging ability.
This commit is contained in:
1 parent
553e572eb5
commit
ebc3a66d10
1 file changed
+3
-3
@@ -240,7 +240,7 @@ std::vector<MeshModule *> MeshModule::GetMeshModulesWithUIFrames()
|
||||
for (auto i = modules->begin(); i != modules->end(); ++i) {
|
||||
auto &pi = **i;
|
||||
if (pi.wantUIFrame()) {
|
||||
LOG_DEBUG("Module wants a UI Frame\n");
|
||||
LOG_DEBUG("%s wants a UI Frame\n", pi.name);
|
||||
modulesWithUIFrames.push_back(&pi);
|
||||
}
|
||||
}
|
||||
@@ -255,7 +255,7 @@ void MeshModule::observeUIEvents(Observer<const UIFrameEvent *> *observer)
|
||||
auto &pi = **i;
|
||||
Observable<const UIFrameEvent *> *observable = pi.getUIFrameObservable();
|
||||
if (observable != NULL) {
|
||||
LOG_DEBUG("Module wants a UI Frame\n");
|
||||
LOG_DEBUG("%s wants a UI Frame\n", pi.name);
|
||||
observer->observe(observable);
|
||||
}
|
||||
}
|
||||
@@ -296,4 +296,4 @@ bool MeshModule::isRequestingFocus()
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user