mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
function macro for tidier addFramFlag() calls
This commit is contained in:
parent
a9c07a4c01
commit
94eb837ee8
@ -119,4 +119,10 @@ class EInkDynamicDisplay : public EInkDisplay
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Tidier calls to addFrameFlag() from outside class
|
||||||
|
#define EINK_ADD_FRAMEFLAG(display, flag) static_cast<EInkDynamicDisplay *>(display)->addFrameFlag(EInkDynamicDisplay::flag)
|
||||||
|
|
||||||
|
#else // !USE_EINK_DYNAMICDISPLAY
|
||||||
|
// Dummy-macro, removes the need for include guards
|
||||||
|
#define EINK_ADD_FRAMEFLAG(display, flag)
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user