From 831931a37dc342b44b65bc191d1c73f8d860b21a Mon Sep 17 00:00:00 2001 From: Kizarm Date: Sat, 25 Jan 2025 13:59:00 +0100 Subject: [PATCH] fifo len --- V203F6P6/ws2812b/ws2812b.cpp | 2 -- V203F6P6/ws2812b/ws2812b.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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: };