mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 13:41:28 +00:00
Fix memory leak when there's no display (#3972)
This commit is contained in:
parent
34553c9714
commit
aa33ad1d58
@ -360,7 +360,7 @@ class Screen : public concurrency::OSThread
|
||||
bool enqueueCmd(const ScreenCmd &cmd)
|
||||
{
|
||||
if (!useDisplay)
|
||||
return true; // claim success if our display is not in use
|
||||
return false; // not enqueued if our display is not in use
|
||||
else {
|
||||
bool success = cmdQueue.enqueue(cmd, 0);
|
||||
enabled = true; // handle ASAP (we are the registered reader for cmdQueue, but might have been disabled)
|
||||
|
Loading…
Reference in New Issue
Block a user