Skip to content

Commit

Permalink
Remove usbreset logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Bultman committed Feb 13, 2015
1 parent dd754a8 commit 608633f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions chillhub-devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ var fs = require('fs');
var stream = require('binary-stream');
var sets = require('simplesets');

var sys = require('sys')
var exec = require('child_process').exec;
function puts(error, stdout, stderr) { sys.puts(stdout) }
function resetUSB() {
//exec("ls -la", puts);
exec("/bin/usbreset /dev/bus/usb/001/002", puts);
}

var commons = require('./commons');
var parsers = require('./parsing');
var CronJob = require('cron').CronJob;
Expand Down Expand Up @@ -432,7 +424,6 @@ function ChillhubDevice(ttyPath, receive, announce) {

self.checkForDeviceRegistration = function checkForDeviceRegistration() {
if (self.deviceRegCount <= 0) {
resetUSB();
removeDevice(ttyPath);
}
if (!self.registered && devices[ttyPath]) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chillhub-firmware",
"version": "0.1.11",
"version": "0.1.12",
"description": "ChillHub is a system for creating USB devices that extend the functionality of your fridge. It consists of a raspberry pi (http://www.raspberrypi.org/), a green bean (https://firstbuild.com/greenbean/), and a USB hub in a refrigerator door. ChillHub acts as a mailman the delivers messages from the cloud and the fridge to USB devices and from the USB devices back to the cloud.",
"main": "chillhub.js",
"scripts": {
Expand Down

0 comments on commit 608633f

Please sign in to comment.