Open MarcFinns opened 6 years ago
Fixes https://github.com/psychogenic/Chronos/issues/5
Note this issue only occurs on filename case-insensitive operating systems like Windows. time.h ends up being #included instead of Time.h. For this reason, a unique filename TimeLib.h was added to the Time library: https://github.com/PaulStoffregen/Time/commit/26cd0c85095d5dbfffded0831abb2f7abaad0469
And not only was TimeLib.h
added a long time ago, the Time.h
wrapper was removed last year.
However this pull request is not correct, it should not add TimeLib.h
unconditionally, it should replace Time.h
inside the ifdef like the following:
@@ -40,7 +40,7 @@
#endif
#ifdef CHRONOS_CLOCKSOURCE_TIMELIB
-#include <Time.h>
+#include <TimeLib.h>
#endif
@MarcFinns Do you want to update this PR, or should I make a new one?
added #include