Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdaSeremet committed Jul 20, 2020
1 parent eb15a01 commit c035d9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,9 @@ const initData = () => {
if(!(Object.keys(ioData).includes("controllable_pins"))) {
ioData.controllable_pins = {};
}
if(!ioData.activeTasks) {
ioData.activeTasks = {};
}
for(const [key, value] of Object.entries(ioData.controllable_pins)) {
if(!availablePins.includes(key)) {
console.log("Pin number " + key + " is not valid! Removing it from JSON.");
Expand Down

0 comments on commit c035d9b

Please sign in to comment.