diff --git a/src/robot.coffee b/src/robot.coffee index 27cd949..a7be7a8 100644 --- a/src/robot.coffee +++ b/src/robot.coffee @@ -50,10 +50,10 @@ module.exports = class Robot device['robot'] = this @devices[device.name] = new Device(device) - start: -> + start: => @startConnections() @startDevices() - @work.call(self, self) + @work.call(self, this) startConnections: => Logger.info "Starting connections..."