diff --git a/oled.js b/oled.js index 2b8e2bd..838fa61 100644 --- a/oled.js +++ b/oled.js @@ -153,7 +153,7 @@ Oled.prototype._waitUntilReady = function(callback) { }); } - setTimeout(tick(callback), 0); + setTimeout(() => { tick(callback) }, 0); }; // set starting position of a text string on the oled