Flasher only uses right lens for confirmation, rather than confusedly trying to check via each lens separately

This commit is contained in:
James Babcock committed 2026-08-25 21:14:50 -07:00
1 parent 97fad7ae2b
commit b74868bfb3
3 files changed
+17 -44

No files matched your search

+5 -3
View File
@@ -17,6 +17,9 @@ export type FlashPromptState =
* stock-firmware-compatible BLE path that shows the pre-flash confirmation on
* the glasses and reports the user's Yes/No choice. Separate from
* FaceclawCommunicatorBridge on purpose (different, minimal protocol subset).
*
* Talks to the right arm only: the lenses relay messages between themselves,
* and acks/events always come from the right arm.
*/
export class FlashPromptCommunicator {
private readonly communicator: any;
@@ -25,14 +28,13 @@ export class FlashPromptCommunicator {
private readonly stateListeners = new Set<(state: FlashPromptState, detail: string) => void>();
private readonly resultListeners = new Set<(approved: boolean) => void>();
constructor(addresses: { right: string; left: string }, warningText: string) {
constructor(rightAddress: string, warningText: string) {
const context = Utils.android.getApplicationContext();
if (!context) throw new Error("Android application context unavailable");
this.communicator = new com.faceclaw.app.FaceclawFlashPromptCommunicator(
context,
addresses.right,
addresses.left,
rightAddress,
warningText,
);
this.listenerProxy = new com.faceclaw.app.FaceclawFlashPromptListener({
+1 -1
View File
@@ -253,7 +253,7 @@ export class OnboardingFlashViewModel extends Observable {
private startCommunicator(addresses: { right: string; left: string }): void {
this.disposePrompt();
const prompt = new FlashPromptCommunicator(addresses, this.glassesWarning);
const prompt = new FlashPromptCommunicator(addresses.right, this.glassesWarning);
this.prompt = prompt;
this.promptUnsubscribers.push(