1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

bugfix: msp430 can write now more then one byte to flash

This commit is contained in:
Simon Gene Gottlieb 2014-06-25 20:53:32 +02:00
parent eb75093cfc
commit b8ef2b90b6

View File

@ -54,7 +54,7 @@ void flashrom_write(uint8_t *dst, uint8_t *src, size_t size)
for (i = size; i > 0; i--) {
FCTL1 = FWKEY | WRT;
*dst = *src; /* program Flash word */
*(dst++) = *(src++); /* program Flash word */
while (!(FCTL3 & WAIT)) {
nop();