From 608633fa1ea0e50a58aa6a22a682c309c640f5f7 Mon Sep 17 00:00:00 2001 From: Rob Bultman Date: Fri, 13 Feb 2015 17:59:49 -0500 Subject: [PATCH] Remove usbreset logic. --- chillhub-devices.js | 9 --------- package.json | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/chillhub-devices.js b/chillhub-devices.js index 13e8e79..9a9eea0 100644 --- a/chillhub-devices.js +++ b/chillhub-devices.js @@ -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; @@ -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]) { diff --git a/package.json b/package.json index 8692be4..f1af0be 100644 --- a/package.json +++ b/package.json @@ -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": {