Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
27627657
Unverified
Commit
27627657
authored
Sep 05, 2019
by
Wolle
Committed by
GitHub
Sep 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected getVolume()
parent
75b2d154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/Audio.cpp
src/Audio.cpp
+4
-0
No files found.
src/Audio.cpp
View file @
27627657
...
...
@@ -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
;
}
//---------------------------------------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment