From 16b93838fb1a41dd08c03bf0cc8832cd7b9d53bd Mon Sep 17 00:00:00 2001 From: Colonel Panic Date: Mon, 20 Apr 2026 08:46:38 -0400 Subject: [PATCH] audio: tighten heartbeat active window to 3 s Only consider a target 'still around' if it was seen within the last 3 seconds (was 20 s). Heartbeat interval stays 10 s. Net effect: the monotone beep-pair only fires while the device is actively in RF range, stops almost immediately on departure. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 7453897..94dd9b4 100644 --- a/main.cpp +++ b/main.cpp @@ -44,7 +44,7 @@ static const size_t fullHopChannelCount = sizeof(fullHopChannels) / sizeof(full // Audio cadence: two fast ascending beeps on a NEW MAC, then while any // target is still in range (seen within HB_DEVICE_ACTIVE_MS), two monotone // heartbeat beeps every HB_BEEP_INTERVAL_MS. -#define HB_DEVICE_ACTIVE_MS 20000 +#define HB_DEVICE_ACTIVE_MS 3000 #define HB_BEEP_INTERVAL_MS 10000 #define NEW_CHIRP_LO_HZ 2000 #define NEW_CHIRP_HI_HZ 2800