* @brief Routes incoming raw data to the per-device console buffer. */
| 814 | * @brief Routes incoming raw data to the per-device console buffer. |
| 815 | */ |
| 816 | void Console::Handler::hotpathRxDeviceData(int deviceId, const QByteArray& data) |
| 817 | { |
| 818 | if (data.isEmpty()) |
| 819 | return; |
| 820 | |
| 821 | const auto str = dataToString(data); |
| 822 | if (str.isEmpty()) |
| 823 | return; |
| 824 | |
| 825 | const auto processed = appendToDevice(deviceId, str, showTimestamp()); |
| 826 | Q_EMIT deviceDataReady(deviceId, processed); |
| 827 | } |
| 828 | |
| 829 | /** |
| 830 | * @brief Echoes sent data to the console (legacy overload for device 0). |
no test coverage detected