Skip to content

Commit 0e02cf1

Browse files
CopilotMrAlders0n
andcommitted
Display exact SNR values instead of rounded integers
Co-authored-by: MrAlders0n <55921894+MrAlders0n@users.noreply.github.com>
1 parent fdffc5e commit 0e02cf1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/wardrive.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,16 +1359,16 @@ function stopRepeaterTracking() {
13591359
/**
13601360
* Format repeater telemetry for output
13611361
* @param {Array<{repeaterId: string, snr: number}>} repeaters - Array of repeater telemetry
1362-
* @returns {string} Formatted repeater string (e.g., "25(-112),2521(-109)" or "none")
1362+
* @returns {string} Formatted repeater string (e.g., "4e(11.5),77(9.75)" or "none")
13631363
*/
13641364
function formatRepeaterTelemetry(repeaters) {
13651365
if (repeaters.length === 0) {
13661366
return "none";
13671367
}
13681368

13691369
// Format as: path(snr), path(snr), ...
1370-
// Round SNR to integers for cleaner output (matches meshcore-cli behavior)
1371-
return repeaters.map(r => `${r.repeaterId}(${Math.round(r.snr)})`).join(',');
1370+
// Display exact SNR values as received
1371+
return repeaters.map(r => `${r.repeaterId}(${r.snr})`).join(',');
13721372
}
13731373

13741374
// ---- Ping ----

0 commit comments

Comments
 (0)