Avoiding flicker in example

This commit is contained in:
Rodrigo Alfonso
2024-08-15 11:07:08 -03:00
parent f6a7f3b2e6
commit 9d5ede98ee
2 changed files with 9 additions and 0 deletions

View File

@@ -130,10 +130,14 @@ void readConfiguration() {
;
}
std::string lastLoggedText = "";
void log(std::string text) {
if (text == lastLoggedText)
return;
tte_erase_screen();
tte_write("#{P:0,0}");
tte_write(text.c_str());
lastLoggedText = text;
}
void waitFor(u16 key) {

View File

@@ -942,3 +942,8 @@ inline void LINK_MOBILE_ISR_TIMER() {
#undef _LMLOG_
#endif // LINK_MOBILE_H
// TODO: Stop keeps running commands and changing state
// TODO: Error screen
// TODO: Keep adapter alive with Wait For Telephone Call
// TODO: Write text fast