Skip to content

Commit

Permalink
Fix conflicts from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
majgis committed Jul 31, 2016
1 parent b020cd6 commit 9fa0438
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion bin/tessel-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ parser.command('provision')
.help('Authorize your computer to control the USB-connected Tessel');

parser.command('restore')
.callback(callControllerCallback('restoreTessel'))
.callback(options => {
log.level(options.loglevel);
callControllerWith('restoreTessel', options);
})
.option('openwrt', {
abbr: 'o',
flag: true,
Expand Down
4 changes: 2 additions & 2 deletions lib/flash.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var async = require('async');
var PAGE = 256;
var logs = require('./logs');
var log = require('./log');
var CHIP_ID = new Buffer([0x01, 0x02, 0x19]);

function address(addr) {
Expand Down Expand Up @@ -147,7 +147,7 @@ function randbyte() {
}

function asyncLog(msg, next) {
logs.info(msg);
log.info(msg);
next();
}

Expand Down
4 changes: 2 additions & 2 deletions lib/tessel/restore.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
var Tessel = require('./tessel');
var update = require('../update-fetch');
var logs = require('../logs');
var log = require('../log');
var flash = require('../flash');

Tessel.prototype.restore = function restore(opts) {
var usbConnection = this.connection;
return new Promise(function(resolve, reject) {
if (opts.openwrt) {
logs.info('Proceeding with updating OpenWrt...');
log.info('Proceeding with updating OpenWrt...');

// download images
return update.fetchRestore()
Expand Down
2 changes: 1 addition & 1 deletion lib/update-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function downloadTgz(tgzUrl, fileMap) {
return reject(new Error('Fetched file wasn\'t formatted properly.'));
}
}
logs.info('Download complete!');
log.info('Download complete!');
return resolve(files);
});

Expand Down

0 comments on commit 9fa0438

Please sign in to comment.