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:
parent
eb75093cfc
commit
b8ef2b90b6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user