diff --git a/code/espurna/rfbridge.cpp b/code/espurna/rfbridge.cpp index 6d461e8c..8c7d37c1 100644 --- a/code/espurna/rfbridge.cpp +++ b/code/espurna/rfbridge.cpp @@ -48,12 +48,6 @@ constexpr bool _rfb_transmit { true }; std::forward_list _rfb_code_handlers; -void _rfbCode(unsigned char protocol, espurna::StringView code) { - for (auto& handler : _rfb_code_handlers) { - handler(protocol, code); - } -} - } // namespace // ----------------------------------------------------------------------------- @@ -675,6 +669,12 @@ void _rfbLearnStartFromPayload(espurna::StringView payload) { namespace { +void _rfbCode(unsigned char protocol, espurna::StringView code) { + for (auto& handler : _rfb_code_handlers) { + handler(protocol, code); + } +} + void _rfbEnqueue(uint8_t (&code)[RfbParser::PayloadSizeBasic], unsigned char repeats = 1u) { if (!_rfb_transmit) return; _rfb_message_queue.push_back(RfbMessage(code, repeats));