0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

Overlay stuff

This commit is contained in:
OneOfEleven
2023-09-16 07:08:18 +01:00
parent 540906cc3f
commit 1e3b26768e
14 changed files with 394 additions and 213 deletions

View File

@ -16,6 +16,9 @@
#include <string.h>
#if !defined(ENABLE_OVERLAY)
#include "ARMCM0.h"
#endif
#include "app/dtmf.h"
#include "app/generic.h"
#include "app/menu.h"
@ -31,7 +34,9 @@
#include "frequencies.h"
#include "misc.h"
#include "settings.h"
#include "sram-overlay.h"
#if defined(ENABLE_OVERLAY)
#include "sram-overlay.h"
#endif
#include "ui/inputbox.h"
#include "ui/menu.h"
#include "ui/ui.h"
@ -1234,7 +1239,12 @@ static void MENU_Key_MENU(bool bKeyPressed, bool bKeyHeld)
AUDIO_PlaySingleVoice(true);
#endif
MENU_AcceptSetting();
overlay_FLASH_RebootToBootloader();
#if defined(ENABLE_OVERLAY)
overlay_FLASH_RebootToBootloader();
#else
NVIC_SystemReset();
#endif
}
gFlagAcceptSetting = true;