File tree Expand file tree Collapse file tree 1 file changed +6
-22
lines changed
Software/Arduino code/OpenAstroTracker Expand file tree Collapse file tree 1 file changed +6
-22
lines changed Original file line number Diff line number Diff line change 27
27
* These files won't be tracked by Git and thus will remain after branch changes or code updates.
28
28
**/
29
29
30
- #if defined(ESP32) // ESP32
31
- #define LOCAL_CONFIG " Configuration_local_esp32.hpp"
32
- #if !__has_include(LOCAL_CONFIG)
33
- #undef LOCAL_CONFIG
34
- #define LOCAL_CONFIG " Configuration_local.hpp"
35
- #endif
36
- #elif defined(__AVR_ATmega2560__) // Arduino Mega
37
- #define LOCAL_CONFIG " Configuration_local_mega.hpp"
38
- #if !__has_include(LOCAL_CONFIG)
39
- #undef LOCAL_CONFIG
40
- #define LOCAL_CONFIG " Configuration_local.hpp"
41
- #endif
42
- #else // Other board?
43
- #define LOCAL_CONFIG " Configuration_local.hpp"
44
- #endif
45
-
46
- // Uncomment these two lines to override the automatic local config with yours.
47
- // #undef LOCAL_CONFIG
48
- // #define LOCAL_CONFIG "Configuration_local_foo.hpp"
49
-
50
- #if __has_include(LOCAL_CONFIG)
51
- #include LOCAL_CONFIG
30
+ #if defined(ESP32) && __has_include("Configuration_local_esp32.hpp") // ESP32
31
+ #include " Configuration_local_esp32.hpp"
32
+ #elif defined(__AVR_ATmega2560__) && __has_include("Configuration_local_mega.hpp") // Mega2560
33
+ #include " Configuration_local_mega.hpp"
34
+ #elif __has_include("Configuration_local.hpp") // Custom config
35
+ #include " Configuration_local.hpp"
52
36
#endif
53
37
54
38
// Set to 1 for the northern hemisphere, 0 otherwise
You can’t perform that action at this time.
0 commit comments