homebridge-openwrt-control 0.0.2-beta.24 → 0.0.2-beta.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/openwrt.js +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "OpenWrt Control",
3
3
  "name": "homebridge-openwrt-control",
4
- "version": "0.0.2-beta.24",
4
+ "version": "0.0.2-beta.25",
5
5
  "description": "Homebridge plugin to control OpenWrt flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/openwrt.js CHANGED
@@ -99,11 +99,11 @@ class OpenWrt extends EventEmitter {
99
99
  const openWrtInfo = { state: false, systemInfo: {}, wirelessStatus: {}, wirelessRadios: [], ssids: [] }
100
100
 
101
101
  try {
102
- //const systemInfo = await this.ubusCall('system', 'board');
103
- //if (!this.logDebug) this.emit('debug', `System info data: ${JSON.stringify(systemInfo, null, 2)}`);
102
+ const systemInfo = await this.ubusCall('system', 'board');
103
+ if (this.logDebug) this.emit('debug', `System info data: ${JSON.stringify(systemInfo, null, 2)}`);
104
104
 
105
105
  const wirelessStatus = await this.ubusCall('network.wireless', 'status');
106
- if (!this.logDebug) this.emit('debug', `Wireless status data: ${JSON.stringify(wirelessStatus, null, 2)}`);
106
+ if (this.logDebug) this.emit('debug', `Wireless status data: ${JSON.stringify(wirelessStatus, null, 2)}`);
107
107
 
108
108
  const wirelessRadios = Object.values(wirelessStatus.radios).map(radio => ({
109
109
  name: radio.name,