-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
be quicker about determining erased byte pattern when flashing #377
Conversation
Did you test it ? index is an unsigned int, always >= 0 ... so the terminal condition of the for loop looks suspicious to me ... ? |
Yup. It behaves the same as previously but with less iterations. The If the break condition were just |
I understand what it does. But when index hits 0, the for loop does not exit, so ps: thanks for your commits by the way ! |
Ah, I see! Okay, updated. Here I tested with a bin full of The unsigned confusion should be gone too - the precondition is now to check if we've seen as many empty bytes as there are bytes mapped in memory. There's a bit of pollution of |
be quicker about determining erased byte pattern when flashing
Thanks. I rewrite the code a little bit, hope you do not mind. |
Thanks!
|
Not a bug, just a slight improvement.