Skip to content

Commit

Permalink
Removed check for non-existent 'active' property
Browse files Browse the repository at this point in the history
  • Loading branch information
silbogdan committed Apr 14, 2021
1 parent ca82dbb commit 88b950f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function update_components() {
}

for (let component of Object.keys(generic_raspberrypi.dataLoaded.components)) {
if (generic_raspberrypi.dataLoaded.components[component].name === 'lcd' && generic_raspberrypi.dataLoaded.components[component].active) {
if (generic_raspberrypi.dataLoaded.components[component].name === 'lcd') {
for (let i = 0; i < 16; i ++) {
if (generic_raspberrypi.dataLoaded.components[component].segments[0][i + generic_raspberrypi.dataLoaded.components[component].shift] === undefined) {
document.getElementById('segment ' + 0 + '-' + i).innerHTML = '';
Expand Down

0 comments on commit 88b950f

Please sign in to comment.