FastLED 3.10.6
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 64 of file rx.cpp.hpp.

64 {
65 static fl::shared_ptr<RxDevice> dummy = fl::make_shared<DummyRxDevice>( // okay static in header
66 "RX devices not supported on this platform"
67 );
68 return dummy;
69}
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
Definition shared_ptr.h:414

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

Referenced by ~RxDevice().

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