owmweather - Only try to pull if BT is connected

master
Martin Boonk 2022-07-03 11:18:13 +02:00
parent 16418fa364
commit f286d7b4b6
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
}
}
setInterval(() => {
if (!waiting){
if (!waiting && NRF.getSecurityStatus().connected){
waiting = true;
require("owmweather").pull(completion);
}