Got beeps working so long as you don't have ctcss set.
Reduced durations to sensible values.
This commit is contained in:
parent
3c20a5282e
commit
a1e302b19d
|
|
@ -914,8 +914,8 @@ void vp_playMenuBeepIfNeeded(bool firstItem)
|
||||||
if (state.settings.vpLevel < vpBeep)
|
if (state.settings.vpLevel < vpBeep)
|
||||||
return;
|
return;
|
||||||
if (firstItem)
|
if (firstItem)
|
||||||
vp_beep(500, 250);
|
vp_beep(500, 5);
|
||||||
else
|
else
|
||||||
vp_beep(1000, 250);
|
vp_beep(1000, 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -279,13 +279,13 @@ static void ReleaseFunctionLatchIfNeeded()
|
||||||
return;
|
return;
|
||||||
|
|
||||||
functionLatchTimer = 0;
|
functionLatchTimer = 0;
|
||||||
vp_beep(200, 500);
|
vp_beep(400, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetFunctionLatchTimer()
|
static void SetFunctionLatchTimer()
|
||||||
{
|
{
|
||||||
functionLatchTimer= getTick() + FUNCTION_LATCH_TIMEOUT;
|
functionLatchTimer= getTick() + FUNCTION_LATCH_TIMEOUT;
|
||||||
vp_beep(800, 500);
|
vp_beep(800, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool FunctionKeyIsLatched()
|
static bool FunctionKeyIsLatched()
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ void platform_ledOff(led_t led)
|
||||||
|
|
||||||
void platform_beepStart(uint16_t freq)
|
void platform_beepStart(uint16_t freq)
|
||||||
{
|
{
|
||||||
toneGen_beepOn((float)freq, 255, 0);
|
toneGen_beepOn((float)freq, 128, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void platform_beepStop()
|
void platform_beepStop()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue