Commit 8f8e8f1
Fix position overwrite by lower-precision data
_onPositionReceive() now checks precisionBits before updating a
node's position. Previously, any POSITION_APP packet would blindly
overwrite the stored position, even if the incoming data had lower
precision (e.g., a relayed map report with 13 bits overwriting a
direct GPS fix with 32 bits).
This caused nodes to show incorrect positions on the map when other
mesh nodes relayed their position at reduced precision.
Fixes #910
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent eb964d7 commit 8f8e8f1
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
| |||
0 commit comments