Skip to content

Commit 608633f

Browse files
author
Rob Bultman
committed
Remove usbreset logic.
1 parent dd754a8 commit 608633f

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

chillhub-devices.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ var fs = require('fs');
33
var stream = require('binary-stream');
44
var sets = require('simplesets');
55

6-
var sys = require('sys')
7-
var exec = require('child_process').exec;
8-
function puts(error, stdout, stderr) { sys.puts(stdout) }
9-
function resetUSB() {
10-
//exec("ls -la", puts);
11-
exec("/bin/usbreset /dev/bus/usb/001/002", puts);
12-
}
13-
146
var commons = require('./commons');
157
var parsers = require('./parsing');
168
var CronJob = require('cron').CronJob;
@@ -432,7 +424,6 @@ function ChillhubDevice(ttyPath, receive, announce) {
432424

433425
self.checkForDeviceRegistration = function checkForDeviceRegistration() {
434426
if (self.deviceRegCount <= 0) {
435-
resetUSB();
436427
removeDevice(ttyPath);
437428
}
438429
if (!self.registered && devices[ttyPath]) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chillhub-firmware",
3-
"version": "0.1.11",
3+
"version": "0.1.12",
44
"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.",
55
"main": "chillhub.js",
66
"scripts": {

0 commit comments

Comments
 (0)