Index: io/flash/current/ChangeLog =================================================================== RCS file: /cvs/ecos/ecos/packages/io/flash/current/ChangeLog,v retrieving revision 1.42 diff -u -r1.42 ChangeLog --- io/flash/current/ChangeLog 3 Aug 2005 21:04:28 -0000 1.42 +++ io/flash/current/ChangeLog 25 Feb 2006 13:22:36 -0000 @@ -1,3 +1,10 @@ +2006-02-21 Oliver Munz + Andrew Lunn + + * src/flash.c (flash_init): Allow repeat calls change the function + used for printing. There are times you don't any output, eg you + are downloading am image over the serial port. + 2005-08-02 Andrew Lunn * tests/flash1.c (cyg_start): Compiler warning fixes. Index: io/flash/current/src/flash.c =================================================================== RCS file: /cvs/ecos/ecos/packages/io/flash/current/src/flash.c,v retrieving revision 1.26 diff -u -r1.26 flash.c --- io/flash/current/src/flash.c 20 Jun 2004 12:46:17 -0000 1.26 +++ io/flash/current/src/flash.c 25 Feb 2006 13:22:37 -0000 @@ -87,8 +87,9 @@ { int err; - if (flash_info.init) return FLASH_ERR_OK; flash_info.pf = pf; // Do this before calling into the driver + if (flash_info.init) return FLASH_ERR_OK; + if ((err = flash_hwr_init()) != FLASH_ERR_OK) { return err; }