raburton / esp8266

Various bits of code for ESP8266
http://richard.burtons.org/
183 stars 47 forks source link

Fix bug when first chunk size equals header size (i.e. totallength re… #1

Closed dranger003 closed 9 years ago

dranger003 commented 9 years ago

I host my ROMs using NGINX and first call to upgrade_recvcb() is exactly the header size so upgrade->totallength never gets incremented then it fails second time upgrade_recvcb() is called as its trying to parse headers within the actual ROM data.