Skip to content

Commit

Permalink
spotrem: send configuration to libslider
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Aug 9, 2023
1 parent d896ddd commit 0f17a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/spotrem/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ let setUI = function() {
},
ud => {
//if (ud) Bangle.musicControl(ud>0 ? "volumedown" : "volumeup");

if (ud) {

let callback = (mode, fb)=>{
if (mode == "map") Bangle.musicControl({cmd:"volumesetlevel", extra:Math.round(100*fb/30)});
if (mode == "incr") Bangle.musicControl(fb>0 ? "volumedown" : "volumeup");
};
require("SliderInput").interface(callback, true, true);
require("SliderInput").interface(callback, {useMap:true, oversizeL:0.25});
}
}
);
Expand Down

0 comments on commit 0f17a68

Please sign in to comment.