forked from Blendman974/faceclaw
G1 support: Flashing within the Android app
This commit is contained in:
1 parent
345ba36c33
commit
38c52ebc31
37 files changed
+2819
-32
No files matched your search
@@ -358,8 +358,7 @@ export class PairingViewModel extends Observable {
|
||||
ring: ringAddress,
|
||||
};
|
||||
saveDeviceAddresses(addresses);
|
||||
const g1 = !!pair?.g1Firmware;
|
||||
if (pair) glassesTypeSetting.set(g1 ? "g1" : "g2");
|
||||
if (pair) glassesTypeSetting.set(pair.g1Firmware ? "g1" : "g2");
|
||||
if (pair) {
|
||||
savePairedGlassesIdentity({
|
||||
serial: pair.serial ?? "",
|
||||
@@ -386,12 +385,6 @@ export class PairingViewModel extends Observable {
|
||||
this.dispose();
|
||||
if (this.onboarding) {
|
||||
setPreviewOnlyMode(false);
|
||||
if (g1) {
|
||||
// The G2 firmware check and flash pages don't apply: a G1's firmware is installed from a
|
||||
// computer, and the session reports incompatible firmware if it lacks the display path.
|
||||
finishOnboardingNavigation();
|
||||
return;
|
||||
}
|
||||
// Continue the onboarding chain: check the glasses' firmware next.
|
||||
Frame.topmost()?.navigate({ moduleName: "phone-ui/onboarding-firmware-check-page" });
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user