File size: 1,291 Bytes
8a29801 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | import {DeviceTypes} from "../types"
/** Mentra Live has no display — omit dashboard/brightness keys from BLE sync. */
export const MENTRA_LIVE_SETTING_KEYS: string[] = [
"sensing_enabled",
"lc3_frame_size",
"preferred_mic",
"voice_activity_detection_enabled",
"loudness_gate_enabled",
"auto_power_off_enabled",
// Effective tuning only. mic_tuning_desired is engine-side state and must
// never appear here, or a persisted super-mode value would reach the glasses.
"mic_tuning",
"core_token",
"auth_email",
"button_photo_size",
"button_video_settings",
"button_max_recording_time",
"camera_fov",
"offline_mode",
"local_stt_fallback_active",
"gallery_mode",
"default_wearable",
"pending_wearable",
"device_name",
"device_address",
"mentra_live_secure_firmware",
"default_controller",
"pending_controller",
"controller_device_name",
"controller_address",
]
function isMentraLiveDevice(model: string | undefined): boolean {
return model === DeviceTypes.LIVE || model === "Mentra Live"
}
export function getBluetoothSettingKeysForDevice(
deviceModel: string | undefined,
fullKeys: string[],
): string[] {
return isMentraLiveDevice(deviceModel) ? MENTRA_LIVE_SETTING_KEYS : fullKeys
}
|