mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-05-05 09:41:26 +03:00
fix dtmf tone freq
This commit is contained in:
parent
0a41985b0b
commit
5f046c5d45
@ -1183,16 +1183,16 @@ void BK4819_PlayDTMF(char Code)
|
|||||||
{
|
{
|
||||||
{ // tone1
|
{ // tone1
|
||||||
941, // '0'
|
941, // '0'
|
||||||
679, // '1'
|
697, // '1'
|
||||||
697, // '2'
|
697, // '2'
|
||||||
679, // '3'
|
697, // '3'
|
||||||
770, // '4'
|
770, // '4'
|
||||||
770, // '5'
|
770, // '5'
|
||||||
770, // '6'
|
770, // '6'
|
||||||
852, // '7'
|
852, // '7'
|
||||||
852, // '8'
|
852, // '8'
|
||||||
852, // '9'
|
852, // '9'
|
||||||
679, // 'A'
|
697, // 'A'
|
||||||
770, // 'B'
|
770, // 'B'
|
||||||
852, // 'C'
|
852, // 'C'
|
||||||
941, // 'D'
|
941, // 'D'
|
||||||
@ -2353,8 +2353,8 @@ void BK4819_reset_fsk(void)
|
|||||||
(0u << 4) | // 0 ~ 15 preamble length .. bit toggling
|
(0u << 4) | // 0 ~ 15 preamble length .. bit toggling
|
||||||
(1u << 3) | // 0/1 sync length
|
(1u << 3) | // 0/1 sync length
|
||||||
(0u << 0); // 0 ~ 7 ???
|
(0u << 0); // 0 ~ 7 ???
|
||||||
fsk_reg59 |= long_preamble ? 15u << 4 : 3u << 4;
|
fsk_reg59 |= long_preamble ? 15u << 4 : 3u << 4;
|
||||||
|
|
||||||
// Set packet length (not including pre-amble and sync bytes that we can't seem to disable)
|
// Set packet length (not including pre-amble and sync bytes that we can't seem to disable)
|
||||||
BK4819_write_reg(0x5D, ((size - 1) << 8));
|
BK4819_write_reg(0x5D, ((size - 1) << 8));
|
||||||
|
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user