imx233/bootloader: fix red

Change-Id: I209cdee6007d3b3c039f6b0b63a30fabc8aefb41
This commit is contained in:
Amaury Pouly 2013-09-26 18:02:09 +02:00
parent 6dcd465b18
commit 7a828ac5e2

View file

@ -157,7 +157,12 @@ void main(uint32_t arg, uint32_t addr)
button_init();
/* dummy read, might be necessary to init things */
#ifdef HAVE_BUTTON_DATA
int data;
button_read_device(&data);
#else
button_read_device();
#endif
#ifdef HAS_BUTTON_HOLD
if(button_hold())