From 602520a840183d142c0db94651ae2c8a543b93f6 Mon Sep 17 00:00:00 2001 From: James Babcock Date: Mon, 27 Apr 2026 20:53:33 -0700 Subject: [PATCH] Send images to the left arm instead of the right --- .../main/java/com/faceclaw/app/FaceclawBleCommunicator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawBleCommunicator.java b/App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawBleCommunicator.java index bf1fd62a..134cf59c 100644 --- a/App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawBleCommunicator.java +++ b/App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawBleCommunicator.java @@ -41,7 +41,7 @@ public class FaceclawBleCommunicator implements FaceclawBleListener, Runnable { private static final int HEARTBEAT_INTERVAL_MS = 5_000; private static final int BATTERY_REFRESH_INTERVAL_MS = 5 * 60_000; private static final int BATTERY_INPUT_QUIET_MS = 5_000; - private static final int WINDOW_SIZE = 3; + private static final int WINDOW_SIZE = 5; private static final int IMAGE_FRAGMENT_SIZE = 3800; private static final int IMAGE_RETRY_DELAY_MS = 10_000; private static final boolean IMAGE_FRAGMENT_NO_ACK = false; @@ -581,8 +581,9 @@ public class FaceclawBleCommunicator implements FaceclawBleListener, Runnable { private boolean writeMessageLocked(OutboundMessage message) { long writeStartedAtMs = SystemClock.elapsedRealtime(); + String writeAddress = "image".equals(message.kind) ? leftAddress : rightAddress; if (!bleManager.writeFrames( - rightAddress, + writeAddress, BleProtocol.WRITE_CHAR_UUID, message.frames, WRITE_TYPE,