forked from Blendman974/faceclaw
Don't show the Compass app on hardware (ie G1s) that can't support it
This commit is contained in:
1 parent
38c52ebc31
commit
0cc263c5d2
16 files changed
+202
-49
No files matched your search
@@ -396,6 +396,15 @@ export const glassesTypeSetting = new ConfigSettingEnum<GlassesType>({
|
||||
reportInAnalytics: false,
|
||||
});
|
||||
|
||||
/**
|
||||
* Whether the paired glasses can report a heading. A G1 has an accelerometer
|
||||
* and a gyroscope but no magnetometer; the RayNeo iO's firmware has no compass
|
||||
* messages.
|
||||
*/
|
||||
export function glassesHaveCompass(): boolean {
|
||||
return glassesTypeSetting.get() === "g2";
|
||||
}
|
||||
|
||||
const APP_SWITCHER_POSITION_LABELS: Record<AppSwitcherPosition, string> = {
|
||||
left: "Left",
|
||||
right: "Right",
|
||||
|
||||
Reference in new issue
Block a user