Add a wake-lock when the G2 screen is on

This commit is contained in:
James Babcock committed 2026-07-03 13:03:03 -07:00
1 parent 6632ada3c3
commit 116e8891e7
4 files changed
+45

No files matched your search

+4
View File
@@ -225,6 +225,10 @@ export class FaceclawCommunicatorBridge {
await this.enqueueJavaCall(() => this.communicator.start());
}
async setG2ScreenOn(screenOn: boolean): Promise<void> {
await this.enqueueJavaCall(() => this.communicator.setG2ScreenOn(Boolean(screenOn)));
}
async submitDashboardImage(image8bpp: Uint8Array, width: number, height: number, fingerprint: string, paintMs = -1): Promise<void> {
const snapshot = new Uint8Array(image8bpp);
await this.enqueueJavaCall(() => {