Userprefs prefix macros for clarity and consistency (#4923)

* Convert userprefs macros to prefixed ones for clarity

* Fix key
This commit is contained in:
Ben Meadors
2024-10-02 06:14:24 -05:00
committed by GitHub
parent b8044c4983
commit 00f15459ec
9 changed files with 44 additions and 44 deletions

View File

@@ -47,7 +47,7 @@ void FloodingRouter::sniffReceived(const meshtastic_MeshPacket *p, const meshtas
meshtastic_MeshPacket *tosend = packetPool.allocCopy(*p); // keep a copy because we will be sending it
tosend->hop_limit--; // bump down the hop count
#if EVENT_MODE
#if USERPREFS_EVENT_MODE
if (tosend->hop_limit > 2) {
// if we are "correcting" the hop_limit, "correct" the hop_start by the same amount to preserve hops away.
tosend->hop_start -= (tosend->hop_limit - 2);