// Find oldest log (simplified - would need blackbox log iterator) uint32_t oldest_log_address = 0; uint32_t oldest_log_size = 0;

// Calculate remaining recording time based on current settings static uint16_t estimate_remaining_time(void) { uint32_t bytes_per_second;

// Smart erase: remove oldest 25% of logs when full static void smart_erase_oldest(void) { if (!adaptive_bb_config.auto_erase) return;

static flash_status_t flash_status;