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

uint8_t < 256 is always true #747

Merged
merged 1 commit into from
Dec 10, 2018
Merged

uint8_t < 256 is always true #747

merged 1 commit into from
Dec 10, 2018

Conversation

rkone
Copy link
Contributor

@rkone rkone commented Dec 7, 2018

No description provided.

@@ -59,7 +59,7 @@ static uint32_t flashPageToOffset(uint32_t page) {
}
printf("\n");
printf("APP CPU MMU\n");
for (uint8_t i = 0; i < 256; i++) {
for (uint16_t i = 0; i < 256; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

One question, is it better to change value type or maybe its just a typo and should be < 255?

@rkone
Copy link
Contributor Author

rkone commented Dec 10, 2018

the esp-idf has the table initialized to 256 elements in the bootloader and in flash_mmap
So, it needs to iterate 0-255 to dump the whole MMU.

@chegewara chegewara merged commit 8a5a789 into nkolban:master Dec 10, 2018
@rkone rkone deleted the patch-2 branch December 10, 2018 21:24
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.

2 participants