Skip to content

Commit

Permalink
remove extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-burgfried committed Feb 24, 2019
1 parent a234bc8 commit fd20539
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ async function handleRadioCommand (device, payload) {

// This function is used by 'handleDeviceCommand' for handeling the volume up/down commands
async function handleVolumeCommand (device, payload, modifier) {
log.info('Handle volume %s', payload)
log.info('Handle modifier %j', modifier)
let change = 5
if (payload !== null) {
if (IsNumeric(payload)) {
Expand All @@ -215,13 +213,10 @@ async function handleVolumeCommand (device, payload, modifier) {
}
}
}
log.info('Change %j', change)

return device.getVolume()
.then(vol => {
log.info('Old volume %j', vol)
let tempVol = vol + (change * modifier)
log.info('New volume %j', tempVol)
if (tempVol > 100) {
return 100
}
Expand Down

0 comments on commit fd20539

Please sign in to comment.