Skip to content

Commit

Permalink
cpu/msp430: use const pointer in flashpage
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Dupont committed Mar 14, 2018
1 parent 4f44778 commit 5a2a4cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/msp430_common/periph/flashpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
#include "irq.h"
#include "periph/flashpage.h"

void flashpage_write(int page, void *data)
void flashpage_write(int page, const void *data)
{
assert(page < FLASHPAGE_NUMOF);

uint8_t *src = (uint8_t *)data;
const uint8_t *src = data;
uint8_t *dst = (uint8_t *)flashpage_addr(page);
unsigned istate;

Expand Down

0 comments on commit 5a2a4cf

Please sign in to comment.