Skip to content

Commit

Permalink
fix shutdown button
Browse files Browse the repository at this point in the history
  • Loading branch information
highstrike committed May 2, 2020
1 parent 02599d1 commit a803a9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "raspberry-ready",
"description": "perfectly imperfect",
"version": "1.0.6",
"version": "1.0.7",
"author": "Highstrike",
"license": "MIT",
"repository": "highstrike/raspberry-ready",
Expand All @@ -16,7 +16,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"pigpio": "~3.1.1"
"pigpio": "^3.2.0"
},
"devDependencies": {
"eslint": "^6.8.0",
Expand Down
2 changes: 1 addition & 1 deletion start.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ button.on('alert', (level) => {
}

if (level === 1) {
exec('sudo sleep 1 && /sbin/shutdown -h now');
exec(`echo 'true' > /shutdown_signal`);
process.exit();
}
});
Expand Down

0 comments on commit a803a9e

Please sign in to comment.