mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
This commit is contained in:
parent
1c75ead4c3
commit
8d1562d384
1 changed files with 4 additions and 8 deletions
|
@ -471,8 +471,7 @@ uint8_t mdc1200_rx_ready_tick_500ms;
|
||||||
|
|
||||||
void MDC1200_process_rx(const uint16_t interrupt_bits)
|
void MDC1200_process_rx(const uint16_t interrupt_bits)
|
||||||
{
|
{
|
||||||
char b[2]="R0";
|
|
||||||
UART_Send((uint8_t *)&b,2);
|
|
||||||
const uint16_t rx_sync_flags = BK4819_ReadRegister(0x0B);
|
const uint16_t rx_sync_flags = BK4819_ReadRegister(0x0B);
|
||||||
const uint16_t fsk_reg59 = BK4819_ReadRegister(0x59) & ~((1u << 15) | (1u << 14) | (1u << 12) | (1u << 11));
|
const uint16_t fsk_reg59 = BK4819_ReadRegister(0x59) & ~((1u << 15) | (1u << 14) | (1u << 12) | (1u << 11));
|
||||||
|
|
||||||
|
@ -520,22 +519,19 @@ void MDC1200_process_rx(const uint16_t interrupt_bits)
|
||||||
mdc1200_rx_buffer[mdc1200_rx_buffer_index++] = (word >> 8) & 0xff;
|
mdc1200_rx_buffer[mdc1200_rx_buffer_index++] = (word >> 8) & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
char a[2]="R1";
|
|
||||||
UART_Send((uint8_t *)&a,2);
|
|
||||||
if (mdc1200_rx_buffer_index >= sizeof(mdc1200_rx_buffer))
|
if (mdc1200_rx_buffer_index >= sizeof(mdc1200_rx_buffer))
|
||||||
{
|
{
|
||||||
BK4819_WriteRegister(0x59, (1u << 15) | (1u << 14) | fsk_reg59);
|
BK4819_WriteRegister(0x59, (1u << 15) | (1u << 14) | fsk_reg59);
|
||||||
BK4819_WriteRegister(0x59, (1u << 12) | fsk_reg59);
|
BK4819_WriteRegister(0x59, (1u << 12) | fsk_reg59);
|
||||||
char a[2]="RE";
|
|
||||||
UART_Send((uint8_t *)&a,2);
|
|
||||||
if (MDC1200_process_rx_data(
|
if (MDC1200_process_rx_data(
|
||||||
mdc1200_rx_buffer,
|
mdc1200_rx_buffer,
|
||||||
mdc1200_rx_buffer_index,
|
mdc1200_rx_buffer_index,
|
||||||
&mdc1200_op,
|
&mdc1200_op,
|
||||||
&mdc1200_arg,
|
&mdc1200_arg,
|
||||||
&mdc1200_unit_id)) {
|
&mdc1200_unit_id)) {
|
||||||
char a[2]="OK";
|
|
||||||
UART_Send((uint8_t *)&a,2);
|
|
||||||
mdc1200_rx_ready_tick_500ms = 2 * 5; // 6 second MDC display time
|
mdc1200_rx_ready_tick_500ms = 2 * 5; // 6 second MDC display time
|
||||||
gUpdateDisplay = true;
|
gUpdateDisplay = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue