Hold the knob to open a six-row menu: save/remove the playing camera as a favourite (12 NVS slots), play or forget favourites, choose the source (random insecam or favourites), time per camera, listing, screen and ring brightness, caption, and reboot into Wi-Fi setup. Settings live in NVS and override the Kconfig first-boot defaults. Camera URLs are stored with their COUNTER placeholder so favourites get a fresh cache-buster on every visit.
9 lines
306 B
C
9 lines
306 B
C
#pragma once
|
|
#include "insecam.h"
|
|
|
|
typedef enum { MENU_RESUME, MENU_PLAY_FAV } menu_result_t;
|
|
|
|
// Runs the on-device settings menu on the calling task until it closes.
|
|
// `current` is the camera that was playing (for the favourite toggle).
|
|
menu_result_t menu_run(const cam_info_t *current, int *fav_slot);
|