diff options
Diffstat (limited to 'iceprog')
-rw-r--r-- | iceprog/iceprog.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/iceprog/iceprog.c b/iceprog/iceprog.c index bae9e71..695e3ed 100644 --- a/iceprog/iceprog.c +++ b/iceprog/iceprog.c @@ -195,12 +195,10 @@ static void flash_read_id() static void flash_reset() { - flash_chip_select(); - mpsse_xfer_spi_bits(0xFF, 8); - flash_chip_deselect(); + uint8_t data[8] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; flash_chip_select(); - mpsse_xfer_spi_bits(0xFF, 2); + mpsse_xfer_spi(data, 8); flash_chip_deselect(); } |