function macro for tidier addFramFlag() calls

This commit is contained in:
Todd Herbert 2024-03-10 04:14:45 +13:00
parent a9c07a4c01
commit 94eb837ee8

View File

@ -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