Add ANCS support to G1

This commit is contained in:
James Babcock committed 2026-11-06 21:47:23 -08:00
1 parent 0cc263c5d2
commit 6e4515afa5
12 files changed
+199 -19

No files matched your search

+5
View File
@@ -857,6 +857,11 @@ export class FaceclawCommunicatorBridge {
return Boolean(this.communicator.isAncsAuthorized());
}
/** False on a G1 whose firmware has no relay; a G2's depends on its firmware revision. */
ancsRelayAvailable(): boolean {
return Boolean(this.communicator.ancsRelayAvailable());
}
onAncsAuthorization(listener: (authorized: boolean) => void): () => void {
this.ancsAuthorizationListeners.add(listener);
return () => this.ancsAuthorizationListeners.delete(listener);