diff --git a/Base64.cpp b/src/Base64.cpp similarity index 93% rename from Base64.cpp rename to src/Base64.cpp index 8f59178..b85f717 100644 --- a/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); diff --git a/Base64.h b/src/Base64.h similarity index 100% rename from Base64.h rename to src/Base64.h