mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 08:15:49 +00:00
wip
This commit is contained in:
@@ -268,6 +268,10 @@ template<typename T> class DisplayWriter {
|
|||||||
// Operator() for convenience
|
// Operator() for convenience
|
||||||
void operator()(T &display) const { this->call(display); }
|
void operator()(T &display) const { this->call(display); }
|
||||||
|
|
||||||
|
// Operator* for backwards compatibility with (*writer_)(*this) pattern
|
||||||
|
DisplayWriter &operator*() { return *this; }
|
||||||
|
const DisplayWriter &operator*() const { return *this; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
enum : uint8_t {
|
enum : uint8_t {
|
||||||
NONE,
|
NONE,
|
||||||
|
|||||||
Reference in New Issue
Block a user