diff --git a/V203F6P6/ws2812b/ws2812b.cpp b/V203F6P6/ws2812b/ws2812b.cpp index 840e33c..2b41600 100644 --- a/V203F6P6/ws2812b/ws2812b.cpp +++ b/V203F6P6/ws2812b/ws2812b.cpp @@ -35,8 +35,6 @@ unsigned OneColor::to_string(char * ptr, const int m) { return n; } -ws2812b::ws2812b (FIFO & r) noexcept : OneWay (), ring(r) { -} unsigned int ws2812b::Send (uint8_t * const ptr, const unsigned int len) { uint32_t cmd; while (ring.Read(cmd)) { diff --git a/V203F6P6/ws2812b/ws2812b.h b/V203F6P6/ws2812b/ws2812b.h index d416838..d571cd2 100644 --- a/V203F6P6/ws2812b/ws2812b.h +++ b/V203F6P6/ws2812b/ws2812b.h @@ -44,7 +44,7 @@ static constexpr unsigned FIFOLEN = 8u; // min. depth je 8, jinak mocnina 2 >= class ws2812b : public OneWay { FIFO & ring; public: - explicit ws2812b (FIFO & r) noexcept; + explicit ws2812b (FIFO & r) noexcept : OneWay (), ring(r) {} unsigned int Send (uint8_t * const ptr, const unsigned int len) override; protected: };