diff --git a/firmware/open_evse/CHANGELOG b/firmware/open_evse/CHANGELOG index 55331af3..640f9b23 100644 --- a/firmware/open_evse/CHANGELOG +++ b/firmware/open_evse/CHANGELOG @@ -1,5 +1,14 @@ Change Log +vD4.5.1 20161213 SCL +- fix broken watchdog when compiling with AVR 1.6.10+. optimizer was + eliminating wdt_init(), so we add "used" attribute to it +- Adafruit_TMP007.cpp - fix 1.6.10+ compiler warning +- turn on RAPI_SEQUENCE_ID by default +- compile with AVR board support 1.6.10+ from now on to save 2K+ code space + if using an older compiler and output is too big, + disable RAPI_SEQUENCE_ID + 20161212 SCL - fix compile errors when GFI not defined - fix compile errors when AUTH_LOCK && !RAPI diff --git a/firmware/open_evse/open_evse.h b/firmware/open_evse/open_evse.h index 7bec7995..e0329260 100644 --- a/firmware/open_evse/open_evse.h +++ b/firmware/open_evse/open_evse.h @@ -37,16 +37,13 @@ #else #include "WProgram.h" // shouldn't need this but arduino sometimes messes up and puts inside an #ifdef #endif // ARDUINO - -#define VERSION "D4.4.0" +#define VERSION "D4.5.1" #include "Language_default.h" //Default language should always be included as bottom layer //Language preferences: Add your custom languagefile here. See Language_default.h for more info. //#include "Language_norwegian.h" -//#define NOCHECKS - //-- begin features // auto detect L1/L2 @@ -68,7 +65,7 @@ #define RAPI // optional sequence id can be inserted as last parameter to commands/responses -//#define RAPI_SEQUENCE_ID +#define RAPI_SEQUENCE_ID // add checksum to RAPI responses RAPI v2.0.0+ #define RAPI_RESPONSE_CHK diff --git a/firmware/open_evse/open_evse.ino b/firmware/open_evse/open_evse.ino index b1663442..1fd4f363 100644 --- a/firmware/open_evse/open_evse.ino +++ b/firmware/open_evse/open_evse.ino @@ -235,7 +235,8 @@ void EvseReset(); // wdt_init turns off the watchdog timer after we use it // to reboot -void wdt_init(void) __attribute__((naked)) __attribute__((section(".init3"))); + +void wdt_init(void) __attribute__((naked,used)) __attribute__((section(".init3"))); void wdt_init(void) { MCUSR = 0;