FastLED 3.9.15
Loading...
Searching...
No Matches

◆ createDummy()

fl::shared_ptr< RxDevice > fl::RxDevice::createDummy ( )
staticprivate

Create dummy RxDevice instance (default fallback)

Returns
Shared pointer to DummyRxDevice

Used by default template implementation when no platform-specific specialization exists. Returns singleton DummyRxDevice instance.

Definition at line 43 of file rx.cpp.hpp.

43 {
44 static fl::shared_ptr<RxDevice> dummy = fl::make_shared<DummyRxDevice>( // okay static in header
45 "RX devices not supported on this platform"
46 );
47 return dummy;
48}
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References FL_NOEXCEPT, and fl::make_shared().

Referenced by ~RxDevice().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: