Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix video for USB-C displays.#1076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
leonardocavagnis merged 2 commits intoarduino:mainfromiabdalkader:fix_h7_video
Jul 10, 2025

Conversation

@iabdalkader
Copy link
Contributor

USB-C display stopped working after changes introduced in#1015

Handle begin() failing.Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
if(err_code <0) {
return err_code;
}
anx7625_dp_get_edid(0, &recognized_edid);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Instead of removing the error check, I’d suggest collecting all errors in a bitmask so we don’t stop at the first failure but still track what went wrong.

Example:

#define INIT_ERR_ANX7625_INIT      (1 << 0)#define INIT_ERR_WAIT_HPD_EVENT    (1 << 1)#define INIT_ERR_GET_EDID         (1 << 2)#define INIT_ERR_DP_START        (1 << 3)...int error_mask = 0;...err_code = anx7625_init(0);if (err_code < 0) {    error_mask |= INIT_ERR_ANX7625_INIT;}...return error_mask; // 0 if everything is OK, otherwise a bitmask with the failed steps

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can't return an error with EDID bit set, because it will stop the sketch, which is what we're trying to undo here. Or are you suggesting to check the mask in the sketch? A bit too much for a sketch maybe?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

yes, I mean checking the mask in the sketch... but you're right. it's a bit too much :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I could take a look at why EDID is failing, and try to fix it, then we won't need any of this, but can't be sure I'll be able to fix it. Apparently it has always been failing we just hadn't notice. Alternatively, we could just merge this and move on, it's up to you.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

let's merge it! :)

@leonardocavagnisleonardocavagnis self-requested a reviewJuly 10, 2025 09:10
@leonardocavagnisleonardocavagnis merged commit4ca97b1 intoarduino:mainJul 10, 2025
11 checks passed
@fabik111
Copy link
Contributor

Hello, has this fix been released? I'm having the same issue describedhere, but the changes in this PR aren't the latest release4.4.1. The last version working for my display is the4.2.1.

@facchinm
Copy link
Member

I think the patch is applied but if EDID is not read correctly you'll fall back into another horrible trap. Here's the possible fix#1089 . Can you try that and report if it's good?

@fabik111
Copy link
Contributor

@facchinm thank you. No, this patch is not in the release4.4.1. The4.4.1 tag is pointing to a commit just before the merge commit of this PR.
BTW I tried this PR and the#1089 and both works.

@iabdalkaderiabdalkader deleted the fix_h7_video branchSeptember 15, 2025 09:01
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@leonardocavagnisleonardocavagnisleonardocavagnis approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@iabdalkader@fabik111@facchinm@leonardocavagnis

[8]ページ先頭

©2009-2025 Movatter.jp