kopia lustrzana https://github.com/meshtastic/firmware
function macro for tidier addFramFlag() calls
rodzic
a9c07a4c01
commit
94eb837ee8
|
@ -119,4 +119,10 @@ class EInkDynamicDisplay : public EInkDisplay
|
|||
#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
|
Ładowanie…
Reference in New Issue