From 203a267ade0bca9316ba2ba37e438a5a226aa903 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 11 May 2012 01:52:47 +0200 Subject: can: fix compiler warning about PROGMEM --- can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/can.c b/can.c index 6120d51..4e41fe8 100644 --- a/can.c +++ b/can.c @@ -34,9 +34,9 @@ static uint8_t spi_wrrd(uint8_t out) return SPDR; } -static void spi_performpgm(const prog_uint8_t *cmds, uint8_t len) +static void spi_performpgm(const uint8_t * PROGMEM cmds, uint8_t len) { - const prog_uint8_t *end = cmds + len; + const uint8_t * PROGMEM end = cmds + len; uint8_t c; spi_ss(0); -- cgit v1.2.1