From f286d7b4b6ade10a59d0646365bf74e9033730b1 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 3 Jul 2022 11:18:13 +0200 Subject: [PATCH] owmweather - Only try to pull if BT is connected --- apps/owmweather/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/owmweather/boot.js b/apps/owmweather/boot.js index 612ccb940..459589ae3 100644 --- a/apps/owmweather/boot.js +++ b/apps/owmweather/boot.js @@ -17,7 +17,7 @@ } } setInterval(() => { - if (!waiting){ + if (!waiting && NRF.getSecurityStatus().connected){ waiting = true; require("owmweather").pull(completion); }