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
224373c1
Commit
224373c1
authored
Sep 25, 2023
by
schreibfaul1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
statical-code-check with Platform-IO (Issue #593)
parent
3f640315
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/Audio.cpp
src/Audio.cpp
+2
-2
src/Audio.h
src/Audio.h
+4
-4
No files found.
src/Audio.cpp
View file @
224373c1
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 26.2018
*
* Version 3.0.6
a
* Updated on:
Aug 28
.2023
* Version 3.0.6
b
* Updated on:
Sep 25
.2023
* Author: Wolle (schreibfaul1)
*
*/
...
...
src/Audio.h
View file @
224373c1
...
...
@@ -3,8 +3,8 @@
*
* Created on: Oct 28,2018
*
* Version 3.0.6
* Updated on:
Aug 0
5.2023
* Version 3.0.6
b
* Updated on:
Sept 2
5.2023
* Author: Wolle (schreibfaul1)
*/
...
...
@@ -374,7 +374,7 @@ private:
}
int
specialIndexOf
(
uint8_t
*
base
,
const
char
*
str
,
int
baselen
,
bool
exact
=
false
){
int
result
;
// seek for str in buffer or in header up to baselen, not nullterninated
int
result
=
0
;
// seek for str in buffer or in header up to baselen, not nullterninated
if
(
strlen
(
str
)
>
baselen
)
return
-
1
;
// if exact == true seekstr in buffer must have "\0" at the end
for
(
int
i
=
0
;
i
<
baselen
-
strlen
(
str
);
i
++
){
result
=
i
;
...
...
@@ -407,7 +407,7 @@ private:
base64_encodestate
_state
;
base64_init_encodestate
(
&
_state
);
int
len
=
base64_encode_block
(
&
source
[
0
],
sourceLength
,
&
buffer
[
0
],
&
_state
);
len
=
base64_encode_blockend
((
buffer
+
len
),
&
_state
);
base64_encode_blockend
((
buffer
+
len
),
&
_state
);
memcpy
(
dest
,
buffer
,
strlen
(
buffer
));
dest
[
strlen
(
buffer
)]
=
'\0'
;
free
(
buffer
);
...
...
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