Skip to content
Browse files

compiles like this correctly on Arduino 1.0 64bit / Fedora 15

  • Loading branch information...
1 parent 862b4ec commit 2f3aa1954e454be56db5478a379639adacce735d @hecko hecko committed Dec 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 RTClib.cpp
View
4 RTClib.cpp
@@ -11,7 +11,7 @@
#define SECONDS_FROM_1970_TO_2000 946684800
#if (ARDUINO >= 100)
- #include <arduino.h>
+ #include <Arduino.h> // capital A so it is error prone on case-sensitive filesystems
#else
#include <WProgram.h>
#endif
@@ -20,7 +20,7 @@ int i = 0; //The new wire library needs to take an int when you are sending for
////////////////////////////////////////////////////////////////////////////////
// utility code, some of this could be exposed in the DateTime API if needed
-static uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 };
+const uint8_t daysInMonth [] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 }; //has to be const or compiler compaints
// number of days since 2000/01/01, valid for 2001..2099
static uint16_t date2days(uint16_t y, uint8_t m, uint8_t d) {

0 comments on commit 2f3aa19

Please sign in to comment.
Something went wrong with that request. Please try again.