0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-08-03 17:46:31 +03:00

1750Hz tone side key now a momentary action (press to TX tone, release to stop TX tone)

This commit is contained in:
OneOfEleven
2023-10-04 00:15:01 +01:00
parent 6e2ba5c214
commit eaccdab1d4
6 changed files with 13 additions and 4 deletions

View File

@@ -89,6 +89,11 @@ center_line_t center_line = CENTER_LINE_NONE;
if (gCurrentFunction != FUNCTION_TRANSMIT)
return;
#if defined(ENABLE_ALARM) || defined(ENABLE_TX1750)
if (gAlarmState != ALARM_STATE_OFF)
return;
#endif
const unsigned int voice_amp = BK4819_GetVoiceAmplitudeOut(); // 15:0
// const unsigned int max = 65535;