Fix bug with calculating background

This commit is contained in:
Neil Brommer 2017-12-31 16:01:03 -08:00
parent 5508e825a2
commit 11b99d8289

View file

@ -28,8 +28,8 @@ function calcBackground() {
var period = (24 / backgroundList.length) * 60; // in minutes
var background = backgroundList[Math.floor(total / period)];
setBackground(background.address, background.dark);
var index = Math.floor(total / period);
setBackground(index);
}
}