media query 4 small displays
This commit is contained in:
@@ -36,8 +36,8 @@ exports.init = function(Express, Configuration) {
|
||||
});
|
||||
|
||||
// set default volume level
|
||||
Helper.shspawn('amixer scontrols');
|
||||
Helper.shspawn('amixer sset \'PCM\' '+volume+'%');
|
||||
//Helper.shspawn('amixer scontrols');
|
||||
//Helper.shspawn('amixer sset \'PCM\' '+volume+'%');
|
||||
|
||||
return this;
|
||||
}
|
||||
@@ -103,7 +103,7 @@ exports.volume = function(step) {
|
||||
Log.log('Radio: volume ' + (step>0 ? 'up' : 'down'));
|
||||
|
||||
if(step != 0) {
|
||||
volume = volume + step;
|
||||
volume += step;
|
||||
|
||||
if(volume > 100) { volume = 100; }
|
||||
if(volume < 0) { volume = 0; }
|
||||
|
||||
Reference in New Issue
Block a user