chiark / gitweb /
Moved LCD initialization out of constructor
authorMaikStohn <git@stohn.de>
Thu, 3 May 2012 12:28:17 +0000 (14:28 +0200)
committerMaikStohn <git@stohn.de>
Thu, 3 May 2012 12:28:17 +0000 (14:28 +0200)
commit032df0b2c6dde69303f60ee05681e046b1a4aab3
treed65e005c6b79a6f160dd93b4512d382003f3689a
parentbd1ad7c76a8d6eb770c5a982817f4ce206f95770
Moved LCD initialization out of constructor

Since the class "MainMenu" was used within a static variable the
initialization of the object (constructor call) was done before Arduino
library startup. It always caused a crash when using AVRStudio with
JTAG debugger (caused from calling the LCD initialization / the lot of
I/O work / the stack used during this calls). By moving the LCD_INIT
out of the constructor and using an explicit call inside of Arduino
setup() implementation immediately fixed all problems and the JTAG
debugger runs fine.
Marlin/Marlin.pde
Marlin/ultralcd.h
Marlin/ultralcd.pde