diff --git a/README.md b/README.md index 27ec0aa..761f902 100644 --- a/README.md +++ b/README.md @@ -74,3 +74,6 @@ Need to use compiler directive -D Wiz5500 and https://github.com/anklimov/Ethern First attempt to use platformio toolchain for compiling (work not completed yet) +#Due compilation issue "USART0_Handler redefinition" +Please, open /variants/arduino_due_x/variant.cpp file, then edit USART0_Handler method definition like this +void USART0_Handler(void) __attribute__((weak)); \ No newline at end of file diff --git a/lighthub/main.cpp b/lighthub/main.cpp index ee8d043..993bacb 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -81,14 +81,17 @@ Config webserver #include "HTTPClient.h" #include #include -//#define wdt_en() wdt_enable(WDTO_8S) -//#define wdt_dis() wdt_disable() -//#define wdt_res() wdt_reset() +#define wdt_en() wdt_enable(WDTO_8S) +#define wdt_dis() wdt_disable() +#define wdt_res() wdt_reset() +#else +#include +#endif + +#ifdef WATCH_DOG_TICKER_DISABLE #define wdt_en() wdt_disable() #define wdt_dis() wdt_disable() #define wdt_res() wdt_disable() -#else -#include #endif #if defined(__SAM3X8E__) diff --git a/platformio.ini b/platformio.ini index 52f00ee..6a330ef 100644 --- a/platformio.ini +++ b/platformio.ini @@ -21,17 +21,14 @@ lib_ldf_mode = chain+ build_flags = !echo -n "-DPIO_SRC_REV="$(git rev-parse --short HEAD) lib_deps = https://github.com/sebnil/DueFlashStorage - https://github.com/livello/Arduino-Temperature-Control-Library.git#1306c49 -; https://github.com/anklimov/Arduino-Temperature-Control-Library.git + https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire -; https://github.com/anklimov/DmxDue - https://github.com/livello/DmxDue#25ee59d + https://github.com/anklimov/DmxDue https://github.com/arduino-libraries/ArduinoHttpClient https://github.com/anklimov/aJson https://github.com/anklimov/CmdArduino https://github.com/anklimov/ModbusMaster -; https://github.com/anklimov/Ethernet - 872 + https://github.com/anklimov/Ethernet ; https://github.com/PaulStoffregen/SPI.git https://github.com/knolleary/pubsubclient.git https://github.com/anklimov/Artnet.git @@ -46,8 +43,7 @@ board = megaatmega2560 framework = arduino ;lib_ldf_mode = chain+ lib_deps = - https://github.com/livello/Arduino-Temperature-Control-Library.git#1306c49 -; https://github.com/anklimov/Arduino-Temperature-Control-Library.git + https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire https://github.com/anklimov/DmxSimple https://github.com/anklimov/httpClient