Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ILI9486 Scroll function divide by zero error #6

Open
alexantony13 opened this issue Jan 5, 2024 · 0 comments
Open

ILI9486 Scroll function divide by zero error #6

alexantony13 opened this issue Jan 5, 2024 · 0 comments

Comments

@alexantony13
Copy link

File: ili9486.c
Function: void ili9486_Scroll(int16_t Scroll, uint16_t TopFix, uint16_t BottonFix)
Since the static uint16_t scrparam[4] array is zero initialized, the line
Scroll = (0 - Scroll) % scrparam[2];
will generate a divide by zero error when executed the first time.

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

No branches or pull requests

1 participant