Fix scope for performing work

This commit is contained in:
Andrew Stewart 2013-10-24 12:54:16 -07:00
parent 3310dee260
commit 31aa6e4901
1 changed files with 2 additions and 2 deletions

View File

@ -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..."