Volume rocker working
This commit is contained in:
@@ -198,9 +198,15 @@ export class ControlUnit implements IAccessory {
|
||||
.on("set", callbackify(this.onSetVolumeSelector));
|
||||
}
|
||||
|
||||
//TODO
|
||||
/**
|
||||
* Event handler for SET volume characteristic
|
||||
*/
|
||||
private onSetVolumeSelector = async (value: any) => {
|
||||
this.log(`set volume + ${value}`);
|
||||
switch (value) {
|
||||
case 0: this.dataProvider.volumeUp(this.name); break;
|
||||
case 1: this.dataProvider.volumeDown(this.name); break;
|
||||
}
|
||||
}
|
||||
|
||||
/*********************
|
||||
|
Reference in New Issue
Block a user