From ac448b5f36b8c992809c2e52717bb254590ee305 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Mon, 26 Jun 2023 02:47:46 +0200 Subject: [PATCH] podadrem: Issue newline before GB commands reference: https://github.com/espruino/BangleApps/commit/ba7a2f79968ed26d3caa8ac2821e07856369e60e --- apps/podadrem/ChangeLog | 1 + apps/podadrem/app.js | 3 +++ apps/podadrem/metadata.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/podadrem/ChangeLog b/apps/podadrem/ChangeLog index 3c68f15ac..cfdf9fcd9 100644 --- a/apps/podadrem/ChangeLog +++ b/apps/podadrem/ChangeLog @@ -7,3 +7,4 @@ Addict. 0.06: Add compatibility with Fastload Utils. 0.07: Remove just the specific listeners to not interfere with Quick Launch when fastloading. +0.08: Issue newline before GB commands (solves issue with console.log and ignored commands) diff --git a/apps/podadrem/app.js b/apps/podadrem/app.js index 9c9ed8b04..01ee74231 100644 --- a/apps/podadrem/app.js +++ b/apps/podadrem/app.js @@ -144,6 +144,7 @@ let simpleSearchTerm = function() { // input a simple search term without tags, let searchPlayWOTags = function() { //make a search and play using entered terms searchString = simpleSearch; + Bluetooth.println(""); Bluetooth.println(JSON.stringify({ t: "intent", action: "android.media.action.MEDIA_PLAY_FROM_SEARCH", @@ -157,6 +158,7 @@ let searchPlayWOTags = function() { //make a search and play using entered terms }; let gadgetbridgeWake = function() { + Bluetooth.println(""); Bluetooth.println(JSON.stringify({ t: "intent", target: "activity", @@ -174,6 +176,7 @@ let actFn = function(actName, activOrServ) { // Send the intent message to Gadgetbridge let btMsg = function(activOrServ, cls, actName, xtra) { + Bluetooth.println(""); Bluetooth.println(JSON.stringify({ t: "intent", action: actFn(actName, activOrServ), diff --git a/apps/podadrem/metadata.json b/apps/podadrem/metadata.json index c58b9241d..02e255ca4 100644 --- a/apps/podadrem/metadata.json +++ b/apps/podadrem/metadata.json @@ -2,7 +2,7 @@ "id": "podadrem", "name": "Podcast Addict Remote", "shortName": "PA Remote", - "version": "0.07", + "version": "0.08", "description": "Control Podcast Addict on your android device.", "readme": "README.md", "type": "app",