roomba-iot – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 128... | Line 128... | |||
128 | setTimeout(function () { |
128 | setTimeout(function () { |
|
129 | port.write(new Buffer(COMMAND_SEQUENCES['start'])) |
129 | port.write(new Buffer(COMMAND_SEQUENCES['start'])) |
|
130 | setTimeout(function () { |
130 | setTimeout(function () { |
|
131 | port.write(new Buffer(COMMAND_SEQUENCES['safe'])) |
131 | port.write(new Buffer(COMMAND_SEQUENCES['safe'])) |
|
132 | setTimeout(callback, 500) |
132 | setTimeout(callback, 500) |
|
133 | }, 30) |
133 | }, 100) |
|
134 | }, 30) |
134 | }, 100) |
|
135 | } |
135 | } |
|
Line 136... | Line 136... | |||
136 | |
136 | |
|
137 | /* |
137 | /* |
|
138 | * Build the sensor buffer as the data is read from the serial port. |
138 | * Build the sensor buffer as the data is read from the serial port. |