TB2026-YDS Firmware
Loading...
Searching...
No Matches
Maintenance service

Shared low-priority task that periodically drives background chores. More...

Collaboration diagram for Maintenance service:

Files

file  components/services/maintenance/maintenance.c
 Maintenance task: periodically runs background chores (volume/player polls, power_tick, autonomy_tick, SD hot-plug watch, idle auto power-off, diag).

Functions

esp_err_t maintenance_init (void)
 Start the maintenance task.

Detailed Description

Shared low-priority task that periodically drives background chores.

Function Documentation

◆ maintenance_init()

esp_err_t maintenance_init ( void )

Start the maintenance task.

Idempotent. The drivers used by the tenants (fuel gauge, GPIO expander) must be initialised before this runs.

Returns
ESP_OK on success, ESP_ERR_NO_MEM if the task cannot be created.