media query 4 small displays

This commit is contained in:
2015-11-16 21:38:06 +01:00
parent 830bb50f14
commit 42b236bb39
3 changed files with 44 additions and 5 deletions
+3 -3
View File
@@ -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; }