0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

PC config comms screen message update

This commit is contained in:
OneOfEleven 2023-10-09 12:53:09 +01:00
parent 6b42315330
commit 7a42f332fa
4 changed files with 18 additions and 3 deletions

View File

@ -1345,6 +1345,12 @@ void APP_CheckKeys(void)
g_boot_counter_10ms = 0; // cancel boot screen/beeps
if (g_serial_config_count_down_500ms > 0)
{
g_boot_counter_10ms = 0; // cancel the boot-up screen
return; // the PC is uploading/downloading config
}
if (g_key_reading_0 != Key)
{ // new key pressed

View File

@ -39,6 +39,7 @@
#include "sram-overlay.h"
#endif
#include "version.h"
#include "ui/ui.h"
#define DMA_INDEX(x, y) (((x) + (y)) % sizeof(UART_DMA_Buffer))
@ -238,7 +239,11 @@ static void CMD_0514(const uint8_t *pBuffer)
g_serial_config_count_down_500ms = serial_config_count_down_500ms;
// turn the LCD backlight off
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
// GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
// show message
g_request_display_screen = DISPLAY_MAIN;
g_update_display = true;
SendVersion();
}
@ -413,7 +418,11 @@ static void CMD_052F(const uint8_t *pBuffer)
Timestamp = pCmd->Timestamp;
// turn the LCD backlight off
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
// GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
// show message
g_request_display_screen = DISPLAY_MAIN;
g_update_display = true;
SendVersion();
}

Binary file not shown.

Binary file not shown.