Unverified Commit 27627657 authored by Wolle's avatar Wolle Committed by GitHub

corrected getVolume()

parent 75b2d154
......@@ -1500,6 +1500,10 @@ void Audio::setVolume(uint8_t vol){ // vol 22 steps, 0...21
}
//---------------------------------------------------------------------------------------------------------------------
uint8_t Audio::getVolume(){
for(uint8_t i = 0; i < 22; i++){
if(volumetable[i] == m_vol) return i;
}
m_vol=12;
return m_vol;
}
//---------------------------------------------------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment