Skip to content

Commit

Permalink
fix: Rename feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallios committed Mar 17, 2024
1 parent f982797 commit 2af7669
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
14 changes: 7 additions & 7 deletions manager-ui/src/types/soundcore-lib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ export enum SoundcoreFeatureFlags {
TOUCH_TONE = 'TOUCH_TONE',
GAME_MODE = 'GAME_MODE',
AUTO_POWER_OFF_ON = 'AUTO_POWER_OFF_ON',
InEarBeep = 'IN_EAR_BEEP',
PromptLang = 'PROMPT_LANG',
HearingProtect = 'HEARING_PROTECT',
AmbientSoundNotice = 'AMBIENT_SOUND_NOTICE',
PowerOnBatteryNotice = 'POWER_ON_BATTERY_NOTICE',
SupportTwoCnn = 'SUPPORT_TWO_CNN',
MultipleDeviceList = 'MULTIPLE_DEVICE_LIST'
IN_EAR_BEEP = 'IN_EAR_BEEP',
LANG_PROMPT = 'LANG_PROMPT',
HEARING_PROTECTION = 'HEARING_PROTECTION',
AMBIENT_SOUND_NOTICE = 'AMBIENT_SOUND_NOTICE',
POWER_ON_BATTERY_NOTICE = 'POWER_ON_BATTERY_NOTICE',
SUPPORT_TWO_CONNECTIONS = 'SUPPORT_TWO_CONNECTIONS',
MULTIPLE_DEVICE_LIST = 'MULTIPLE_DEVICE_LIST'
}
15 changes: 7 additions & 8 deletions soundcore-lib/src/models/feature_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ pub enum SoundcoreFeatureFlags {
TOUCH_TONE,
GAME_MODE,
AUTO_POWER_OFF_ON,
// TODO: Rename
InEarBeep,
PromptLang,
HearingProtect,
AmbientSoundNotice,
PowerOnBatteryNotice,
SupportTwoCnn,
MultipleDeviceList
IN_EAR_BEEP,
LANG_PROMPT,
HEARING_PROTECTION,
AMBIENT_SOUND_NOTICE,
POWER_ON_BATTERY_NOTICE,
SUPPORT_TWO_CONNECTIONS,
MULTIPLE_DEVICE_LIST
}
12 changes: 6 additions & 6 deletions soundcore-lib/src/packets/response/state/a3040.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ const A3040_FEATURE_FLAGS: BitFlags<SoundcoreFeatureFlags> = make_bitflags!(Soun
| TOUCH_TONE
| GAME_MODE
| AUTO_POWER_OFF_ON
| PowerOnBatteryNotice
| AmbientSoundNotice
| HearingProtect
| PromptLang
| InEarBeep
| SupportTwoCnn
| POWER_ON_BATTERY_NOTICE
| AMBIENT_SOUND_NOTICE
| HEARING_PROTECTION
| LANG_PROMPT
| IN_EAR_BEEP
| SUPPORT_TWO_CONNECTIONS
});

// TODO: Figure out what the bytes remaining are so this can be all_consuming
Expand Down

0 comments on commit 2af7669

Please sign in to comment.