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