Skip to content

Commit

Permalink
Merge pull request adafruit#9 from hecko/patch-1
Browse files Browse the repository at this point in the history
Corrected #include for case-sensitive filesystems
  • Loading branch information
PaintYourDragon committed Dec 18, 2011
2 parents 862b4ec + 2f3aa19 commit e963a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RTClib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit e963a2c

Please sign in to comment.