Skip to content

Commit

Permalink
Make use of the log function so that it outputs correctly aligned (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Rhodes committed Jan 1, 2020
1 parent 6fc387c commit 1cbec16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/getDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const startPing = (device, log) => {

device.state = 'inactive';
} else if (active && device.state !== 'active') {
if (device.state === 'inactive') console.log(`Broadlink RM device at ${device.host.address} (${device.host.macAddress || ''}) has been re-discovered.`);
if (device.state === 'inactive') log(`Broadlink RM device at ${device.host.address} (${device.host.macAddress || ''}) has been re-discovered.`);

device.state = 'active';
}
Expand Down

0 comments on commit 1cbec16

Please sign in to comment.