Skip to content

Boxpro analog display PAL/NTSC mode setting fix - #635

Open
purple-zz wants to merge 1 commit into
hd-zero:mainfrom
purple-zz:fix/boxpro-refresh-rate
Open

purple-zz wants to merge 1 commit into
hd-zero:mainfrom
purple-zz:fix/boxpro-refresh-rate

Conversation

@purple-zz

Copy link
Copy Markdown

I was reviewing the boxpro code to see if I can find the reason for analog ghosting that seems to be happening for some people.

Boxpro code had this in AV_in_detect():

if (g_hw_stat.av_pal)
I2C_Write(ADDR_FPGA, 0x80, 0x10);
else
I2C_Write(ADDR_FPGA, 0x80, 0x00);

and g_hw_stat.av_pal being the address of an array the if-clause is always true. I guess the intention was to check g_hw_stat.av_pal_w?

AV_Mode_Switch_fpga() also executes dispw -s command, so in addition just doing I2C_Write could result in an inconsistent display config?

Fixed the same bug in the logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant