fabriceo / SCoop

Simple Cooperative Scheduler for Arduino and Teensy ARM and AVR
126 stars 82 forks source link

SchedulerARMAVR: Add used attribute to coopSchedule #3

Closed per1234 closed 7 years ago

per1234 commented 8 years ago

Arduino AVR Boards 1.6.12 and newer have added LTO. This seems to cause coopSchedule to be optimized away, resulting in the example sketch not compiling. By adding the used attribute this is prevented.

It's unclear from the repository's branch structure which branch I should submit this pull request to. If master is not the correct branch please let me know and I'll resubmit the pull request to the correct branch.

per1234 commented 7 years ago

@fabriceo, please let me know if there's anything I need to do to get this merged.

fabriceo commented 7 years ago

hi there! well I ve just press the merge button :) let see