Got beeps working so long as you don't have ctcss set.

Reduced durations to sensible values.
This commit is contained in:
vk7js 2022-09-09 20:35:57 +10:00 committed by Silvano Seva
parent 3c20a5282e
commit a1e302b19d
3 changed files with 5 additions and 5 deletions

View File

@ -914,8 +914,8 @@ void vp_playMenuBeepIfNeeded(bool firstItem)
if (state.settings.vpLevel < vpBeep)
return;
if (firstItem)
vp_beep(500, 250);
vp_beep(500, 5);
else
vp_beep(1000, 250);
vp_beep(1000, 5);
}

View File

@ -279,13 +279,13 @@ static void ReleaseFunctionLatchIfNeeded()
return;
functionLatchTimer = 0;
vp_beep(200, 500);
vp_beep(400, 10);
}
static void SetFunctionLatchTimer()
{
functionLatchTimer= getTick() + FUNCTION_LATCH_TIMEOUT;
vp_beep(800, 500);
vp_beep(800, 10);
}
static bool FunctionKeyIsLatched()

View File

@ -184,7 +184,7 @@ void platform_ledOff(led_t led)
void platform_beepStart(uint16_t freq)
{
toneGen_beepOn((float)freq, 255, 0);
toneGen_beepOn((float)freq, 128, 0);
}
void platform_beepStop()