fix possible race condition in lcdFlush
This commit is contained in:
committed by
Raphael Coeffic
parent
60293ae763
commit
01c80f7868
@@ -143,7 +143,10 @@ void lcdRefresh()
|
||||
|
||||
void lcdFlushed()
|
||||
{
|
||||
lv_disp_flush_ready(refr_disp);
|
||||
// its possible to get here before flushLcd is ever called.
|
||||
// so check for nullptr first. (Race condition if you put breakpoints in startup code)
|
||||
if (refr_disp != nullptr)
|
||||
lv_disp_flush_ready(refr_disp);
|
||||
}
|
||||
|
||||
//TODO: move this somewhere else
|
||||
|
||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: 31824ab1f0...03109134ce
Reference in New Issue
Block a user