| 118 | } |
| 119 | |
| 120 | uint32_t maxLaneLeds(const fl::vector<fl::ChannelConfig>& tx_configs) { |
| 121 | uint32_t max_leds = 0; |
| 122 | for (fl::size i = 0; i < tx_configs.size(); i++) { |
| 123 | const uint32_t count = |
| 124 | static_cast<uint32_t>(tx_configs[i].mLeds.size()); |
| 125 | if (count > max_leds) { |
| 126 | max_leds = count; |
| 127 | } |
| 128 | } |
| 129 | return max_leds; |
| 130 | } |
| 131 | |
| 132 | class ScopedFastLedBrightness { |
| 133 | public: |
no test coverage detected