Skip to content

ESP32 does not have PROGMEM #5

Description

@kbahey

I use your excellent Ephemeris library with the hand controller for the OnStep telescope controller.
The hand controller is an ESP32.

One issue is that the standard Ephemeris library defines PROGMEM which does not compile on the ESP32. In any case, PROGMEM is not needed for ESP32, because it does it by default.

One small fix will let Ephemeris compile successfully is to have this in Ephemeris.h:

$ git diff
diff --git a/Ephemeris.h b/Ephemeris.h
index 759242e..7b7d86f 100755
--- a/Ephemeris.h
+++ b/Ephemeris.h
@@ -19,6 +19,10 @@
 #ifndef Ephemeris_library
 #define Ephemeris_library
 
+#ifdef ESP32
+#define PROGMEM
+#endif
+
 #if ARDUINO
 #include <Ephemeris.hpp>
 #else

Can you please include that change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions