raburton / rboot

An open source bootloader for the ESP8266
https://richard.burtons.org/tag/rboot/?order=ASC
MIT License
301 stars 72 forks source link

Fixes for romToBoot and readme.txt #1

Closed riban-bw closed 8 years ago

riban-bw commented 8 years ago

These two patches (each committed separately) correct a potential issue with detecting a good ROM and correct missing parameter in readme. Cheers!

raburton commented 8 years ago

The value of romToBoot is checked after being decremented and if it is < 0 it loops back to the highest rom: if (romToBoot < 0) romToBoot = romconf->count - 1; Changing it to unsigned will prevent this check working and it will jump to rom 0xff instead of the highest actual rom.

Thanks for spotting the omission in the readme, I've fixed that.