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:
parent
6b42315330
commit
7a42f332fa
@ -1345,6 +1345,12 @@ void APP_CheckKeys(void)
|
|||||||
|
|
||||||
g_boot_counter_10ms = 0; // cancel boot screen/beeps
|
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)
|
if (g_key_reading_0 != Key)
|
||||||
{ // new key pressed
|
{ // new key pressed
|
||||||
|
|
||||||
|
13
app/uart.c
13
app/uart.c
@ -39,6 +39,7 @@
|
|||||||
#include "sram-overlay.h"
|
#include "sram-overlay.h"
|
||||||
#endif
|
#endif
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
#define DMA_INDEX(x, y) (((x) + (y)) % sizeof(UART_DMA_Buffer))
|
#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;
|
g_serial_config_count_down_500ms = serial_config_count_down_500ms;
|
||||||
|
|
||||||
// turn the LCD backlight off
|
// 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();
|
SendVersion();
|
||||||
}
|
}
|
||||||
@ -413,7 +418,11 @@ static void CMD_052F(const uint8_t *pBuffer)
|
|||||||
Timestamp = pCmd->Timestamp;
|
Timestamp = pCmd->Timestamp;
|
||||||
|
|
||||||
// turn the LCD backlight off
|
// 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();
|
SendVersion();
|
||||||
}
|
}
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user