mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-01 21:36:53 -05:00
Avoiding flicker in example
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user