Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
c3b95a62
Commit
c3b95a62
authored
1 year ago
by
moon2
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
audio init: clearer error output
parent
9deae7bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/badge23/audio.c
+2
-3
2 additions, 3 deletions
components/badge23/audio.c
with
2 additions
and
3 deletions
components/badge23/audio.c
+
2
−
3
View file @
c3b95a62
...
...
@@ -37,9 +37,7 @@ static esp_err_t max98091_i2c_write(const uint8_t reg, const uint8_t data)
{
const
uint8_t
tx
[]
=
{
reg
,
data
};
esp_err_t
ret
=
i2c_master_write_to_device
(
I2C_MASTER_NUM
,
0x10
,
tx
,
sizeof
(
tx
),
TIMEOUT_MS
/
portTICK_PERIOD_MS
);
if
(
max98091_i2c_read
(
reg
)
!=
data
)
printf
(
"Write of %04X to %02X apparently failed
\n
"
,
data
,
reg
);
if
(
max98091_i2c_read
(
reg
)
!=
data
)
printf
(
"readback of %04X to %02X write failed
\n
"
,
data
,
reg
);
return
ret
;
}
...
...
@@ -113,6 +111,7 @@ static void init_codec()
ESP_ERROR_CHECK
(
max98091_i2c_write
(
0x41
,
0x0
));
ESP_ERROR_CHECK
(
max98091_i2c_write
(
0x3D
,
1
<<
7
));
// jack detect enable
printf
(
"4 readbacks failing here is normal dw ^w^"
);
}
static
void
i2s_init
(
void
){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment