Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
fscherwi committed Feb 11, 2019
1 parent 87bc457 commit 8e32498
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,23 @@ function tfdataGet() {
}

function liveOutput() {
simpleGet();
setTimeout(() => {
defineCallBack();
registerCallBack();
}, 25);
}

function simpleOutput() {
function simpleGet() {
ipcon.on(Tinkerforge.IPConnection.CALLBACK_CONNECTED,
() => {
tfdataGet();
}
);
}

function simpleOutput() {
simpleGet();
setTimeout(() => {
output.output(outputData);
ipcon.disconnect();
Expand Down

0 comments on commit 8e32498

Please sign in to comment.