JiriSko / amixer-webui

Web application for control ALSA volume
MIT License
53 stars 21 forks source link

Fix negative dB value issue with Raspberry #2

Closed christianTF closed 7 years ago

christianTF commented 7 years ago

The UI is logically inconsistent as UI shows percent but code uses dB. Therefore, on Raspberry, the UI shows a range of -10000 to 400 % but is dB.

christianTF commented 7 years ago

I've added a is_digit function recognizing also negative numbers.

JiriSko commented 7 years ago

Good job. Thanks!