mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Launch Broadcast FM overlay from FM action
This commit is contained in:
1 parent
bd049c0467
commit
4c3847ef34
3 files changed
+21
-7
No files matched your search
@@ -633,6 +633,19 @@ uint8_t APP_ValidateSlot(uint8_t slot, app_header_t *out_header)
|
||||
return APP_OK;
|
||||
}
|
||||
|
||||
uint8_t APP_LaunchOverlayByName(const char *name)
|
||||
{
|
||||
app_header_t h;
|
||||
|
||||
for (uint8_t slot = 0; slot < APP_SLOT_COUNT; slot++) {
|
||||
if (APP_ValidateSlot(slot, &h) == APP_OK &&
|
||||
strncmp(h.name, name, APP_NAME_LEN) == 0)
|
||||
return APP_LaunchOverlay(slot);
|
||||
}
|
||||
|
||||
return APP_ERR_MAGIC;
|
||||
}
|
||||
|
||||
uint8_t APP_SlotInfo(uint8_t slot, app_header_t *out_header)
|
||||
{
|
||||
if (slot >= APP_SLOT_COUNT)
|
||||
|
||||
Reference in new issue
Block a user