mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Path buffer from firmware contains trailing garbage bytes beyond the actual hop data. out_path_len encodes both hop count (lower 6 bits) and hash size (upper 2 bits). Now we: - Truncate out_path to meaningful bytes (hop_count * hash_size) - Format as readable E7→DE→54→54→D8 instead of raw hex string - Show hop count derived from actual path arrows Example: out_path_len=5 with out_path="e7de5454d81c49dfb86f8a" now correctly displays as "E7→DE→54→54→D8 (5 hops)" instead of showing the full 11-byte buffer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>