From 31e56b23eddfd7f6c2e37d0f8fa983019bfc25bb Mon Sep 17 00:00:00 2001 From: Ben Whittaker Date: Sun, 17 May 2020 18:46:44 -0400 Subject: [PATCH] Stop Gadgetbridge from ignoring initial message. Gadgetbridge seems to ignore the first line sent to it after connecting. This commit works around this by prepending each message with a blank line. --- apps/gbridge/widget.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/gbridge/widget.js b/apps/gbridge/widget.js index a87b9d1ec..0d0f2468d 100644 --- a/apps/gbridge/widget.js +++ b/apps/gbridge/widget.js @@ -13,6 +13,7 @@ }; function gbSend(message) { + Bluetooth.println(""); Bluetooth.println(JSON.stringify(message)); }