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
43aa0427
Unverified
Commit
43aa0427
authored
Jul 07, 2023
by
Earle F. Philhower, III
Committed by
GitHub
Jul 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reapply #1548 (#1582)
parent
cc5d1779
Changes
1
Hide 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 @
43aa0427
...
@@ -263,13 +263,8 @@ int I2S::available() {
...
@@ -263,13 +263,8 @@ int I2S::available() {
}
else
{
}
else
{
auto
avail
=
_arb
->
available
();
auto
avail
=
_arb
->
available
();
avail
*=
4
;
// 4 samples per 32-bits
avail
*=
4
;
// 4 samples per 32-bits
if
(
_bps
<
24
)
{
if
(
_bps
<
24
&&
!
_isOutput
)
{
if
(
_isOutput
)
{
avail
+=
_isHolding
/
8
;
// 16- and 8-bit can have holding bytes available
avail
+=
(
32
-
_isHolding
)
/
8
;
}
else
{
avail
+=
_isHolding
/
8
;
}
}
}
return
avail
;
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