fix(mesh): šířku path hashe bere každá TX cesta z prefs uzlu, ne z konstanty

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5 committed 2026-08-22 18:13:02 +02:00
1 parent 89f08f76b7
commit 906c675b4b
6 files changed
+56 -6

No files matched your search

+5
View File
@@ -116,6 +116,11 @@ protected:
// Mesh overrides
float getAirtimeBudgetFactor() const override;
bool allowPacketForward(const mesh::Packet* packet) override;
// Šířku path hashe volí ODESÍLATEL, takže musí přijít z prefs tohohle uzlu.
// Díky tomuhle overridu ji dostanou i volání send*(), která ji nepředávají
// explicitně (ACKy, PATH-return, zerohop odpovědi sousedovi).
uint8_t getSelfPathHashSize() const override { return _prefs.path_hash_mode + 1; }
int calcRxDelay(float score, uint32_t air_time) const override;
uint32_t getRetransmitDelay(const mesh::Packet* packet) override;
uint32_t getDirectRetransmitDelay(const mesh::Packet* packet) override;