From 6f84a543e68b507355a659ebe8831401d174dcdc Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Sun, 13 Nov 2016 01:09:29 +0000 Subject: [PATCH 1/2] Migrate to Arduino 1.5 library format --- Base64.cpp => src/Base64.cpp | 0 Base64.h => src/Base64.h | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename Base64.cpp => src/Base64.cpp (100%) rename Base64.h => src/Base64.h (100%) diff --git a/Base64.cpp b/src/Base64.cpp similarity index 100% rename from Base64.cpp rename to src/Base64.cpp diff --git a/Base64.h b/src/Base64.h similarity index 100% rename from Base64.h rename to src/Base64.h From 3ff455718ab55305a089cfcc1b7c6e9102923e57 Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Sun, 13 Nov 2016 01:12:03 +0000 Subject: [PATCH 2/2] Add support for Particle devices --- src/Base64.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Base64.cpp b/src/Base64.cpp index 8f59178..b85f717 100644 --- a/src/Base64.cpp +++ b/src/Base64.cpp @@ -1,9 +1,16 @@ #include "Base64.h" +#ifndef PARTICLE #include const char PROGMEM b64_alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789+/"; +#else +const char b64_alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz" + "0123456789+/"; +#define pgm_read_byte(address_short) (*address_short) +#endif /* 'Private' declarations */ inline void a3_to_a4(unsigned char * a4, unsigned char * a3); inline void a4_to_a3(unsigned char * a3, unsigned char * a4);