Author: stefanct Date: Mon Oct 21 23:49:08 2013 New Revision: 1760 URL: http://flashrom.org/trac/flashrom/changeset/1760
Log: programmer_delay: filter 0 usec delays. We use 0 as delay value for some chips. Just skipping these here is the most elegant, maintainable solution. Signed-off-by: Urja Rannikko <[email protected]> Acked-by: Stefan Tauner <[email protected]> Modified: trunk/flashrom.c Modified: trunk/flashrom.c ============================================================================== --- trunk/flashrom.c Sun Oct 20 01:35:28 2013 (r1759) +++ trunk/flashrom.c Mon Oct 21 23:49:08 2013 (r1760) @@ -487,7 +487,8 @@ void programmer_delay(int usecs) { - programmer_table[programmer].delay(usecs); + if (usecs > 0) + programmer_table[programmer].delay(usecs); } void map_flash_registers(struct flashctx *flash) _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
