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

This commit is contained in:
andrekir
2023-04-25 19:18:03 -03:00
parent 7834cb1f0c
commit 34eac6af18

View File

@@ -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