Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
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
arduino-pico
Commits
0e579792
Unverified
Commit
0e579792
authored
Jun 19, 2023
by
LinusHeu
Committed by
GitHub
Jun 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I2S: Don't consider _isHolding when it's an output (#1548)
parent
20cabe82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
libraries/I2S/src/I2S.cpp
libraries/I2S/src/I2S.cpp
+2
-7
No files found.
libraries/I2S/src/I2S.cpp
View file @
0e579792
...
...
@@ -204,14 +204,9 @@ int I2S::available() {
}
else
{
auto
avail
=
_arb
->
available
();
avail
*=
4
;
// 4 samples per 32-bits
if
(
_bps
<
24
)
{
if
(
_isOutput
)
{
// 16- and 8-bit can have holding bytes available
avail
+=
(
32
-
_isHolding
)
/
8
;
}
else
{
if
(
_bps
<
24
&&
!
_isOutput
)
{
avail
+=
_isHolding
/
8
;
}
}
return
avail
;
}
}
...
...
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