Closed GoogleCodeExporter closed 9 years ago
Okay, this was fun, Patch is ready!
Wow, this one is NASTY! SetBrightness() is called way too early during init(),
at a time where backTimer* has not been initialised. Since SetBrightness()
writes to places where backTimer* is pointing the function will write into raw
memory *somewhere*, problably into code being executed.
So I moved SetBrightness() way down after all necessary pointers are
initialised. Now everything works fine :)
How to apply the patch:
- check out the lolshield SVN trunk
- apply arduino-1.0-include.patch from LoLShield issue #17
(http://code.google.com/p/lolshield/issues/detail?id=17) if it has not been
applied already.
- put the patch file init-brightness-after-assigning-backTimer-pointer.patch
into the checkout directory
- run
patch -p0 < init-brightness-after-assigning-backTimer-pointer.patch
Original comment by thilo.al...@gmail.com
on 6 Jan 2012 at 4:49
Attachments:
For the record: This defect is by no means "Medium". It's "Major" to
"Critical", but as a User/Reporter I'm unable to adjust the severity.
Original comment by thilo.al...@gmail.com
on 6 Jan 2012 at 5:00
Fixed in revision 21.
Original comment by thilo.al...@gmail.com
on 7 Jan 2012 at 7:36
Original issue reported on code.google.com by
thilo.al...@gmail.com
on 6 Jan 2012 at 1:14