forked from Blendman974/faceclaw
Add ANCS support to G1
This commit is contained in:
1 parent
0cc263c5d2
commit
6e4515afa5
12 files changed
+199
-19
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user