From 2dace5cf5f583d6c99b071b26f9bcfb2c5b1e3cc Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Mon, 15 Oct 2012 19:23:42 -0700 Subject: [PATCH] FastSerial example sketch: Depend on AP_Common for PSTR definitions --- .../FastSerial/examples/FastSerial/FastSerial.pde | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libraries/FastSerial/examples/FastSerial/FastSerial.pde b/libraries/FastSerial/examples/FastSerial/FastSerial.pde index a1af765233..b9c1dfe921 100644 --- a/libraries/FastSerial/examples/FastSerial/FastSerial.pde +++ b/libraries/FastSerial/examples/FastSerial/FastSerial.pde @@ -13,14 +13,8 @@ // disabled. // #include - -#undef PROGMEM -#define PROGMEM __attribute__(( section(".progmem.data") )) - -# undef PSTR -# define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); \ - (prog_char_t *)&__c[0];})) - +#include +#include // // Create a FastSerial driver that looks just like the stock Arduino // driver.