Browse Source

uart_commands.c: eeprom_update_block() also utilized in avr-libc > 1.8.1

feature/2017
Christian Kroll 9 years ago
parent
commit
dc97831e1b
  1. 8
      src/uart/uart_commands.c

8
src/uart/uart_commands.c

@ -50,8 +50,9 @@ extern volatile unsigned char reverseMode;
#define CR "\r\n"
#if (!(defined(eeprom_update_block) && \
((E2PAGESIZE == 2) || (E2PAGESIZE == 4) || (E2PAGESIZE == 8)))) || \
#if ((__AVR_LIBC_MAJOR__ < 1) || \
((__AVR_LIBC_MAJOR__ == 1) && (__AVR_LIBC_MINOR__ < 7))) || \
((E2PAGESIZE != 2) && (E2PAGESIZE != 4) && (E2PAGESIZE != 8)) || \
!defined(ANIMATION_TESTS) || !(defined(SCROLLTEXT_SUPPORT))
char const UART_STR_NOTIMPL[] PROGMEM = "Not implemented."CR;
#endif
@ -145,7 +146,8 @@ static void uartcmd_clear_buffer(void) {
* Erases the complete EEPROM to reset counters and high score tables.
*/
static void uartcmd_erase_eeprom(void) {
#if defined(eeprom_update_block) && \
#if ((__AVR_LIBC_MAJOR__ > 1) || \
((__AVR_LIBC_MAJOR__ == 1) && (__AVR_LIBC_MINOR__ >= 7))) && \
((E2PAGESIZE == 2) || (E2PAGESIZE == 4) || (E2PAGESIZE == 8))
uint8_t const eeclear[] =
# if E2PAGESIZE == 8

Loading…
Cancel
Save