Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@hecko

implemented as mentioned in issues on github

@PaintYourDragon PaintYourDragon merged commit e963a2c into adafruit:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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) {
Something went wrong with that request. Please try again.