mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-02 11:32:35 +02:00
Stage 1 of path_hash_mode support. The critical bug in _on_rx_log_data treated the raw path_len byte as a direct byte count, which breaks with mode>0 (e.g. mode=1, 0 hops → path_len=0x40=64, reading 64 bytes of non-existent path data). Now properly decodes the encoded path_len byte into hop_count, hash_size, and path_byte_len. Changes: - Add decode_path_len() utility for MeshCore v1.14+ path_len encoding - Fix _on_rx_log_data binary parsing to use decoded path length - Pass hash_size through _process_echo → DB insert → SocketIO emission - Add hash_size column to echoes table (schema + migration) - Update insert_echo() to store hash_size (default 1 for backward compat) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 KiB
48 KiB