device_test: fix `undefined reference to screen_process`
No idea what causes it and why only in test_smarteeprom.c, which is simliar to for
example test_usb_composed_ep_in.c, which also does not use any screen
stuff and still compiles.
#include "memory/smarteeprom.h"
#include "qtouch.h"
#include "screen.h"
+#include "ui/screen_process.h"
#include <stdarg.h>
#include <stdlib.h>
@@ -87,5 +88,12 @@ int main(void)
_screen_print_debug("SmartEEPROM enabled.\nRebooting.", 2000);
_reset_mcu();
}
+ for (;;) {
+ // without this, there is a undefined reference to screen_process linking error. I have no
+ // idea why this would happen here.
+ // - somehow it is LTO-optmized away
+ // - Rust code calls it, which is why there is a reference error.
+ screen_process();
+ }
return 0;
}
