From 75be0f45e1bcc491d9531f75b89d164a48be3a43 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sat, 14 Jan 2023 01:00:26 +0100 Subject: [PATCH] android - Fix GPS power state targets for serial workaround --- apps/android/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/android/boot.js b/apps/android/boot.js index 1dd92bcc0..a8de61452 100644 --- a/apps/android/boot.js +++ b/apps/android/boot.js @@ -217,8 +217,8 @@ Bangle._PWR.GPS = orig; } }; - NRF.on('connect', ()=>{handleConnection(1);}); - NRF.on('disconnect', ()=>{handleConnection(0);}); + NRF.on('connect', ()=>{handleConnection(0);}); + NRF.on('disconnect', ()=>{handleConnection(1);}); // Work around Serial1 for GPS not working when connected to something let wrap = function(f){