Skip to content

Commit

Permalink
fix(wifi): toggle wifi-iface instead of wifi-device
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown committed Dec 13, 2015
1 parent 0ad3070 commit 22e4f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tessel/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports.setNetworkEncryption = function(encryption) {
return ['uci', 'set', 'wireless.@wifi-iface[0].encryption=' + encryption];
};
module.exports.turnOnWifi = function(enabled) {
return ['uci', 'set', 'wireless.@wifi-device[0].disabled=' + Number(enabled ? 0 : 1).toString()];
return ['uci', 'set', 'wireless.@wifi-iface[0].disabled=' + Number(enabled ? 0 : 1).toString()];
};
module.exports.commitWirelessCredentials = function() {
return ['uci', 'commit', 'wireless'];
Expand Down

0 comments on commit 22e4f80

Please sign in to comment.