Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernesto Montada Romero committed May 8, 2018
1 parent e1c72ad commit bc91683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CLI extends EventEmitter {
cli = this

this.opts = Object.assign({}, opts)

this._init()

this.comms.on("command", c => this._parseCommand(c))
Expand Down Expand Up @@ -89,7 +89,7 @@ function _sensors(opts) {
debug("Sensors command: %o", opts)
const s = cli.opts.sensors
if (opts.i) {
s.setImu(opts.t !== "0" ? true : false)
s.setImu(opts.i !== "0" ? true : false)
}
if (opts.g) {
s.setGps(opts.g !== "0" ? true : false)
Expand Down Expand Up @@ -117,7 +117,7 @@ function _camera(opts) {

function _pilot(opts) {
debug("Pilot command: %o", opts)

}

function _status(opts) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "cli.js",
"scripts": {
"test": "export DEBUG=* || SET DEBUG=enforce-cli,mock:xbee && node ./test/test.js"
"test": "export DEBUG=* || SET DEBUG=enforce-cli,mock:imu,enforce-cli:sensors && node ./test/test.js"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit bc91683

Please sign in to comment.