1
0
mirror of https://github.com/Optiboot/optiboot.git synced 2025-07-03 05:42:30 +03:00

Fix warning when LED_START_FLASHES is 0

flash_led() would be declared but not defined, which causes a warning
for static functions.
This commit is contained in:
Matthijs Kooijman
2016-09-23 12:03:19 +02:00
parent 814e2a89bd
commit 1e277d9b79

View File

@ -359,7 +359,9 @@ void __attribute__((noinline)) verifySpace();
void __attribute__((noinline)) watchdogConfig(uint8_t x); void __attribute__((noinline)) watchdogConfig(uint8_t x);
static inline void getNch(uint8_t); static inline void getNch(uint8_t);
#if LED_START_FLASHES > 0
static inline void flash_led(uint8_t); static inline void flash_led(uint8_t);
#endif
static inline void watchdogReset(); static inline void watchdogReset();
static inline void writebuffer(int8_t memtype, uint8_t *mybuff, static inline void writebuffer(int8_t memtype, uint8_t *mybuff,
uint16_t address, pagelen_t len); uint16_t address, pagelen_t len);