Six public API functions had no callers anywhere in the firmware: splash_prev, splash_set_active, splash_current_name, splash_count, ble_is_connected, imu_set_rotation, power_is_usb_connected, power_usb_changed. Trimming them lets power.cpp drop the VBUS state machine (cached_usb, usb_changed_flag, last_vbus_ms, enableVbusVoltageMeasure). usage_rate_reset becomes file-static since the only caller is in usage_rate.cpp itself. Montserrat font flags in platformio.ini were enabled but never referenced.
13 lines
517 B
C
13 lines
517 B
C
#pragma once
|
|
|
|
// Tracks short-term rate of change in session_pct (%/min) so the UI can react
|
|
// to *how heavily* Claude is being used right now, not just the current bucket
|
|
// level. Returns one of 4 group indices for the splash to pick animations from.
|
|
|
|
// Feed in the latest session percentage every time fresh BLE data arrives.
|
|
void usage_rate_sample(float session_pct);
|
|
|
|
// 0 = idle, 1 = normal, 2 = active, 3 = heavy.
|
|
// Defaults to 0 when the buffer doesn't have enough samples yet.
|
|
int usage_rate_group(void);
|