mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
HAL_AVR: fixed warnings on all PSTR() usage
This commit is contained in:
parent
857c0b69e5
commit
b1856bc17e
@ -14,6 +14,9 @@ typedef struct {
|
|||||||
char c;
|
char c;
|
||||||
} prog_char_t;
|
} prog_char_t;
|
||||||
|
|
||||||
|
#undef PROGMEM
|
||||||
|
#define PROGMEM __attribute__(( section(".progmem.data") ))
|
||||||
|
|
||||||
#undef PSTR
|
#undef PSTR
|
||||||
/* Need const type for progmem - new for avr-gcc 4.6 */
|
/* Need const type for progmem - new for avr-gcc 4.6 */
|
||||||
#if __AVR__ && __GNUC__ == 4 && __GNUC_MINOR__ > 5
|
#if __AVR__ && __GNUC__ == 4 && __GNUC_MINOR__ > 5
|
||||||
|
Loading…
Reference in New Issue
Block a user