glidernet / diy-tracker

Do-it-Yourself OGN Tracker software
GNU General Public License v3.0
27 stars 18 forks source link

Correct checksum loop #7

Closed kedder closed 6 years ago

kedder commented 6 years ago

Not sure why this works with -Os optimizations (I guess the loop gets reduced to single Check+=Word[0]; operation), but without compiler optimizations (-O0) MCU goes into (almost) infinite loop.