From 9425482f8257e44ed266745565c4dec1bdae039b Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Fri, 24 Feb 2017 19:22:53 +0100 Subject: Fix logging sketch --- code/008-logging.js | 2 +- slides/img/logging_data.png | Bin 67675 -> 70420 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/code/008-logging.js b/code/008-logging.js index d5cb2a3..971767b 100644 --- a/code/008-logging.js +++ b/code/008-logging.js @@ -26,7 +26,7 @@ setWatch(function(e) { }, 4000); }, BTN, { repeat: true, edge: 'rising' }); -setTimeout(function() { +setInterval(function() { dht.read(function(data) { entry = "- {time: " + Date.now() + diff --git a/slides/img/logging_data.png b/slides/img/logging_data.png index e703f1a..55fc758 100644 Binary files a/slides/img/logging_data.png and b/slides/img/logging_data.png differ -- cgit v1.2.3