fix: change MeshPacket default `hopLimit` to match LoRa config instead of 0

pull/627/head
andrekir 2023-04-25 19:18:03 -03:00
rodzic 7834cb1f0c
commit 34eac6af18
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -489,7 +489,7 @@ class MeshService : Service(), Logging {
private fun MeshPacket.Builder.buildMeshPacket(
wantAck: Boolean = false,
id: Int = generatePacketId(), // always assign a packet ID if we didn't already have one
hopLimit: Int = 0,
hopLimit: Int = localConfig.lora.hopLimit,
channel: Int = 0,
priority: MeshPacket.Priority = MeshPacket.Priority.UNSET,
initFn: MeshProtos.Data.Builder.() -> Unit