0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 15:08:37 +03:00

Try up/down butts with squelch off/monitor enabled

This commit is contained in:
OneOfEleven
2023-10-16 06:43:42 +01:00
parent 798f0f97f3
commit 244c4f1091
35 changed files with 623 additions and 587 deletions

10
main.c
View File

@ -95,9 +95,9 @@ void Main(void)
RADIO_ConfigureChannel(0, VFO_CONFIGURE_RELOAD);
RADIO_ConfigureChannel(1, VFO_CONFIGURE_RELOAD);
RADIO_SelectVfos();
RADIO_select_vfos();
RADIO_SetupRegisters(true);
RADIO_setup_registers(true);
for (i = 0; i < ARRAY_SIZE(g_battery_voltages); i++)
BOARD_ADC_GetBatteryInfo(&g_battery_voltages[i], &g_usb_current);
@ -216,17 +216,17 @@ void Main(void)
while (1)
{
APP_Update();
APP_process();
if (g_next_time_slice)
{
APP_TimeSlice10ms();
APP_time_slice_10ms();
g_next_time_slice = false;
}
if (g_next_time_slice_500ms)
{
APP_TimeSlice500ms();
APP_time_slice_500ms();
g_next_time_slice_500ms = false;
}
}