FastLED 3.10.9
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 70 of file rx.cpp.hpp.

70 {
71 static fl::shared_ptr<RxDevice> dummy = fl::make_shared<DummyRxDevice>( // okay static in header
72 "RX devices not supported on this platform"
73 );
74 return dummy;
75}
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:423

References fl::FL_NO_EXCEPT, and fl::adl_barrier::make_shared().

Referenced by ~RxDevice().

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