From 196aab81ec68642155eb006ab68c6612a4e3d8e1 Mon Sep 17 00:00:00 2001 From: livello Date: Wed, 14 Mar 2018 13:48:38 +0300 Subject: [PATCH] (2) env_default, libdeps_dir does not help --- pio_run_error_log.txt | 711 +++++++++--------------------------------- platformio.ini | 58 +--- 2 files changed, 144 insertions(+), 625 deletions(-) diff --git a/pio_run_error_log.txt b/pio_run_error_log.txt index 91de2e2..70bc953 100644 --- a/pio_run_error_log.txt +++ b/pio_run_error_log.txt @@ -1,10 +1,11 @@ -livello@lserver ~/PROG/lighthub $ rm .piolibdeps/ -R -f && pio run -e megaatmega2560 +livello@lserver ~/PROG/lighthub $ rm -Rf .piolibdeps/ +livello@lserver ~/PROG/lighthub $ pio run -e megaatmega2560 -[Wed Mar 14 02:13:43 2018] Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino) +[Wed Mar 14 13:46:03 2018] Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- LibraryManager: Installing Arduino-Temperature-Control-Library git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-d4rqwB-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-cmz44U-package»… remote: Counting objects: 337, done. remote: Compressing objects: 100% (6/6), done. remote: Total 337 (delta 1), reused 0 (delta 0), pack-reused 331 @@ -14,7 +15,7 @@ remote: Total 337 (delta 1), reused 0 (delta 0), pack-reused 331 HEAD сейчас на 1306c49 Update OneWire.cpp LibraryManager: Installing DS2482_OneWire git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-_j6w1l-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-sk9FKd-package»… remote: Counting objects: 14, done. remote: Compressing objects: 100% (10/10), done. remote: Total 14 (delta 1), reused 7 (delta 0), pack-reused 0 @@ -22,7 +23,7 @@ remote: Total 14 (delta 1), reused 7 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing DmxSimple git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-9UrkaE-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-6FpiRF-package»… remote: Counting objects: 15, done. remote: Compressing objects: 100% (12/12), done. remote: Total 15 (delta 0), reused 13 (delta 0), pack-reused 0 @@ -30,7 +31,7 @@ remote: Total 15 (delta 0), reused 13 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing httpClient git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-fzHDYg-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-sz4zO7-package»… remote: Counting objects: 13, done. remote: Compressing objects: 100% (11/11), done. remote: Total 13 (delta 0), reused 9 (delta 0), pack-reused 0 @@ -38,7 +39,7 @@ remote: Total 13 (delta 0), reused 9 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing aJson git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-t91cPW-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-vKbebH-package»… remote: Counting objects: 20, done. remote: Compressing objects: 100% (16/16), done. remote: Total 20 (delta 0), reused 13 (delta 0), pack-reused 0 @@ -46,7 +47,7 @@ remote: Total 20 (delta 0), reused 13 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing CmdArduino git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-K87pw4-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-SdLqob-package»… remote: Counting objects: 17, done. remote: Compressing objects: 100% (14/14), done. remote: Total 17 (delta 2), reused 15 (delta 1), pack-reused 0 @@ -54,7 +55,7 @@ remote: Total 17 (delta 2), reused 15 (delta 1), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing ModbusMaster git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-MpOaw_-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-CTfc76-package»… remote: Counting objects: 41, done. remote: Compressing objects: 100% (35/35), done. remote: Total 41 (delta 0), reused 18 (delta 0), pack-reused 0 @@ -62,7 +63,7 @@ remote: Total 41 (delta 0), reused 18 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing DMXSerial git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-8uNNCf-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-SUXywb-package»… remote: Counting objects: 17, done. remote: Compressing objects: 100% (14/14), done. remote: Total 17 (delta 0), reused 9 (delta 0), pack-reused 0 @@ -70,7 +71,7 @@ remote: Total 17 (delta 0), reused 9 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing Ethernet git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-kgiEoN-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-vEEroA-package»… remote: Counting objects: 48, done. remote: Compressing objects: 100% (41/41), done. remote: Total 48 (delta 4), reused 20 (delta 1), pack-reused 0 @@ -78,7 +79,7 @@ remote: Total 48 (delta 4), reused 20 (delta 1), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing SPI git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-HL64L4-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-Kn75yj-package»… remote: Counting objects: 12, done. remote: Compressing objects: 100% (11/11), done. remote: Total 12 (delta 0), reused 6 (delta 0), pack-reused 0 @@ -86,7 +87,7 @@ remote: Total 12 (delta 0), reused 6 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing pubsubclient git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-Sn_BZN-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-JOtNYi-package»… remote: Counting objects: 56, done. remote: Compressing objects: 100% (48/48), done. remote: Total 56 (delta 5), reused 26 (delta 1), pack-reused 0 @@ -94,7 +95,7 @@ remote: Total 56 (delta 5), reused 26 (delta 1), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing Artnet git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-7FI8Ud-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-LExt22-package»… remote: Counting objects: 37, done. remote: Compressing objects: 100% (32/32), done. remote: Total 37 (delta 8), reused 17 (delta 0), pack-reused 0 @@ -132,28 +133,19 @@ Dependency Graph |-- v1.0 #8d59205 |-- v2.6 #f029640 |-- #3d39995 -| |-- v1.2.7 -| | |-- v1.0 #8d59205 | |-- v1.1.2 #238e8fc | | |-- v1.0 #8d59205 +| |-- v1.2.7 +| | |-- v1.0 #8d59205 |-- v3.1.8 | |-- v1.0 -| |-- v3.1 #62f0959 | |-- v1.3.0 #4db73b3 +| |-- v3.1 #62f0959 |-- v1.0 |-- v2.0 -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/FastLED.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/bitswap.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/colorpalettes.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/colorutils.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/hsv2rgb.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/lib8tion.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/noise.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/power_mgt.cpp.o -Compiling .pioenvs/megaatmega2560/libc0c/FastLED_ID126/wiring.cpp.o Compiling .pioenvs/megaatmega2560/src/dmx.cpp.o -Compiling .pioenvs/megaatmega2560/src/esp.cpp.o -Compiling .pioenvs/megaatmega2560/src/inputs.cpp.o +Compiling .pioenvs/megaatmega2560/src/item.cpp.o +Compiling .pioenvs/megaatmega2560/src/lighthub.ino.cpp.o lighthub/dmx.cpp: In function 'int itemCtrl2(char*, int, int, int, int)': lighthub/dmx.cpp:91:3: warning: no return statement in function returning non-void [-Wreturn-type] } @@ -166,24 +158,7 @@ lighthub/dmx.cpp: In function 'void onDmxFrame(uint16_t, uint16_t, uint8_t, uint lighthub/dmx.cpp:186:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0 ; i < length && idmxMax) dmxMaxChannel(channel); -^ -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/Dhcp.cpp.o -Archiving .pioenvs/megaatmega2560/lib60c/libDmxSimple.a -In file included from .piolibdeps/ModbusMaster/src/ModbusMaster.h:58:0, -from lighthub/item.cpp:29: -lighthub/item.cpp: At top level: -.piolibdeps/ModbusMaster/src/util/crc16.h:71:17: warning: 'crc16_update' defined but not used [-Wunused-function] -static uint16_t crc16_update(uint16_t crc, uint8_t a) -^ -Archiving .pioenvs/megaatmega2560/lib704/libDallasTemperature.a -Indexing .pioenvs/megaatmega2560/lib60c/libDmxSimple.a -Indexing .pioenvs/megaatmega2560/lib704/libDallasTemperature.a -Archiving .pioenvs/megaatmega2560/libecc/libModbusMaster.a -Indexing .pioenvs/megaatmega2560/libecc/libModbusMaster.a -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/Dns.cpp.o -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/Ethernet.cpp.o -Archiving .pioenvs/megaatmega2560/lib465/libSPI.a -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/EthernetClient.cpp.o -Indexing .pioenvs/megaatmega2560/lib465/libSPI.a -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/EthernetServer.cpp.o -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/EthernetUdp.cpp.o -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/utility/socket.cpp.o -Compiling .pioenvs/megaatmega2560/libab3/Ethernet/utility/w5100.cpp.o -Compiling .pioenvs/megaatmega2560/liba60/httpClient/HTTPClient.cpp.o -Archiving .pioenvs/megaatmega2560/libf1a/libEEPROM.a -Compiling .pioenvs/megaatmega2560/lib9dd/aJson/aJSON.cpp.o -Indexing .pioenvs/megaatmega2560/libf1a/libEEPROM.a -In file included from .piolibdeps/httpClient/HTTPClient.cpp:41:0: -.piolibdeps/httpClient/HTTPClient.h: In constructor 'HTTPClient::HTTPClient(char*, uint8_t*)': -.piolibdeps/httpClient/HTTPClient.h:186:8: warning: 'HTTPClient::debugCommunication' will be initialized after [-Wreorder] -char debugCommunication; -^ -.piolibdeps/httpClient/HTTPClient.h:180:12: warning: 'uint8_t* HTTPClient::ip' [-Wreorder] -uint8_t* ip; -^ -.piolibdeps/httpClient/HTTPClient.cpp:56:1: warning: when initialized here [-Wreorder] -HTTPClient::HTTPClient(char* host, uint8_t* ip) : -^ -In file included from .piolibdeps/httpClient/HTTPClient.cpp:41:0: -.piolibdeps/httpClient/HTTPClient.h: In constructor 'HTTPClient::HTTPClient(char*, uint8_t*, uint16_t)': -.piolibdeps/httpClient/HTTPClient.h:186:8: warning: 'HTTPClient::debugCommunication' will be initialized after [-Wreorder] -char debugCommunication; -^ -.piolibdeps/httpClient/HTTPClient.h:180:12: warning: 'uint8_t* HTTPClient::ip' [-Wreorder] -uint8_t* ip; -^ -.piolibdeps/httpClient/HTTPClient.cpp:62:1: warning: when initialized here [-Wreorder] -HTTPClient::HTTPClient(char* host, uint8_t* ip, uint16_t port) : -^ -In file included from .piolibdeps/httpClient/HTTPClient.cpp:41:0: -.piolibdeps/httpClient/HTTPClient.h: In constructor 'HTTPClient::HTTPClient(char*, uint16_t)': -.piolibdeps/httpClient/HTTPClient.h:186:8: warning: 'HTTPClient::debugCommunication' will be initialized after [-Wreorder] -char debugCommunication; -^ -.piolibdeps/httpClient/HTTPClient.h:180:12: warning: 'uint8_t* HTTPClient::ip' [-Wreorder] -uint8_t* ip; -^ -.piolibdeps/httpClient/HTTPClient.cpp:68:1: warning: when initialized here [-Wreorder] -HTTPClient::HTTPClient(char* host, uint16_t port) : -^ -.piolibdeps/httpClient/HTTPClient.cpp: In member function 'char HTTPClient::sendUriAndHeaders(FILE*, char*, const char*, char*, http_client_parameter*, http_client_parameter*)': -.piolibdeps/httpClient/HTTPClient.cpp:260:51: warning: array subscript has type 'char' [-Wchar-subscripts] -parameter = ¶meters[parameter_number]; -^ -.piolibdeps/httpClient/HTTPClient.cpp:270:34: warning: array subscript has type 'char' [-Wchar-subscripts] -while (headers[headerNumber].name != NULL) -^ -.piolibdeps/httpClient/HTTPClient.cpp:272:35: warning: array subscript has type 'char' [-Wchar-subscripts] -if (headers[headerNumber].value != NULL) -^ -.piolibdeps/httpClient/HTTPClient.cpp:274:73: warning: array subscript has type 'char' [-Wchar-subscripts] -fprintf_P(stream, PSTR("%s: %s\r\n"), headers[headerNumber].name, -^ -.piolibdeps/httpClient/HTTPClient.cpp:275:39: warning: array subscript has type 'char' [-Wchar-subscripts] -headers[headerNumber].value); -^ -.piolibdeps/httpClient/HTTPClient.cpp: In static member function 'static int HTTPClient::clientWrite(char, FILE*)': -.piolibdeps/httpClient/HTTPClient.cpp:349:38: warning: array subscript has type 'char' [-Wchar-subscripts] -client->write(encoded[i]); -^ -.piolibdeps/httpClient/HTTPClient.cpp:352:41: warning: array subscript has type 'char' [-Wchar-subscripts] -Serial.print(encoded[i]); -^ -.piolibdeps/httpClient/HTTPClient.cpp: In member function 'int HTTPClient::skipHeader(FILE*)': -.piolibdeps/httpClient/HTTPClient.cpp:435:18: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] -lastReturnCode = NULL; -^ -.piolibdeps/httpClient/HTTPClient.cpp:437:30: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] -if (stream == NULL) return NULL; -^ -.piolibdeps/httpClient/HTTPClient.cpp:447:22: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] -if (res!=1) return NULL; -^ -.piolibdeps/httpClient/HTTPClient.cpp:464:18: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null] -Compiling .pioenvs/megaatmega2560/lib9dd/aJson/utility/stringbuffer.c.o -return NULL; -^ -Compiling .pioenvs/megaatmega2560/libf1a/CmdArduino/Cmd.cpp.o .piolibdeps/aJson/aJSON.cpp: In member function 'virtual bool aJsonEEPROMStream::available()': .piolibdeps/aJson/aJSON.cpp:145:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (addr+offsetprint(',') == EOF) .piolibdeps/aJson/aJSON.cpp:987:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (this->print('}') == EOF) ^ -Archiving .pioenvs/megaatmega2560/libab3/libEthernet.a -Indexing .pioenvs/megaatmega2560/libab3/libEthernet.a -Compiling .pioenvs/megaatmega2560/lib231/DMXSerial/DMXSerial.cpp.o -.piolibdeps/CmdArduino/Cmd.cpp: In function 'void cmd_parse(char*)': -.piolibdeps/CmdArduino/Cmd.cpp:78:10: warning: unused variable 'buf' [-Wunused-variable] -char buf[50]; +In file included from .piolibdeps/ModbusMaster/src/ModbusMaster.h:58:0, +from lighthub/item.cpp:29: +lighthub/item.cpp: At top level: +.piolibdeps/ModbusMaster/src/util/crc16.h:71:17: warning: 'crc16_update' defined but not used [-Wunused-function] +static uint16_t crc16_update(uint16_t crc, uint8_t a) ^ -Compiling .pioenvs/megaatmega2560/lib9a2/PubSubClient/PubSubClient.cpp.o -.piolibdeps/DMXSerial/src/DMXSerial.cpp:157:0: warning: "SERIAL_8N1" redefined -#define SERIAL_8N1 ((0< _dmxMaxChannel) channel = _dmxMaxChannel; -^ -.piolibdeps/DMXSerial/src/DMXSerial.cpp: In member function 'void DMXSerialClass::write(int, uint8_t)': -.piolibdeps/DMXSerial/src/DMXSerial.cpp:336:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (channel > _dmxMaxChannel) channel = _dmxMaxChannel; -^ -.piolibdeps/DMXSerial/src/DMXSerial.cpp: In function 'void __vector_37()': -.piolibdeps/DMXSerial/src/DMXSerial.cpp:543:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (_dmxChannel > _dmxMaxChannel) { -^ -Compiling .pioenvs/megaatmega2560/lib255/WiFi/WiFiClient.cpp.o -Archiving .pioenvs/megaatmega2560/lib231/libDMXSerial.a -Archiving .pioenvs/megaatmega2560/libf1a/libCmdArduino.a -Archiving .pioenvs/megaatmega2560/liba60/libhttpClient.a -Indexing .pioenvs/megaatmega2560/lib231/libDMXSerial.a -Indexing .pioenvs/megaatmega2560/libf1a/libCmdArduino.a -Indexing .pioenvs/megaatmega2560/liba60/libhttpClient.a -Compiling .pioenvs/megaatmega2560/lib255/WiFi/WiFiServer.cpp.o -Archiving .pioenvs/megaatmega2560/lib9a2/libPubSubClient.a Archiving .pioenvs/megaatmega2560/lib9dd/libaJson.a -Indexing .pioenvs/megaatmega2560/lib9a2/libPubSubClient.a -Compiling .pioenvs/megaatmega2560/lib255/WiFi/WiFiUdp.cpp.o Indexing .pioenvs/megaatmega2560/lib9dd/libaJson.a -Compiling .pioenvs/megaatmega2560/lib255/WiFi/utility/server_drv.cpp.o -Compiling .pioenvs/megaatmega2560/lib255/WiFi/utility/spi_drv.cpp.o -Compiling .pioenvs/megaatmega2560/lib255/WiFi/utility/wifi_drv.cpp.o -Compiling .pioenvs/megaatmega2560/libc78/Artnet/Artnet.cpp.o -Compiling .pioenvs/megaatmega2560/lib988/SoftwareSerial/SoftwareSerial.cpp.o -Archiving .pioenvs/megaatmega2560/libFrameworkArduinoVariant.a -/home/livello/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/utility/wifi_drv.cpp: In static member function 'static uint8_t WiFiDrv::getEncTypeNetowrks(uint8_t)': -/home/livello/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/utility/wifi_drv.cpp:451:10: warning: converting to non-pointer type 'uint8_t {aka unsigned char}' from NULL [-Wconversion-null] -return NULL; -^ -/home/livello/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/utility/wifi_drv.cpp: In static member function 'static int32_t WiFiDrv::getRSSINetoworks(uint8_t)': -/home/livello/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/utility/wifi_drv.cpp:476:10: warning: converting to non-pointer type 'int32_t {aka long int}' from NULL [-Wconversion-null] -return NULL; -^ -In file included from /home/livello/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/utility/spi_drv.cpp:22:0: -/home/livello/.platformio/packages/framework-arduinoavr/libraries/WiFi/src/utility/spi_drv.h:41:13: warning: 'initialized' defined but not used [-Wunused-variable] -static bool initialized = false; -^ -.piolibdeps/Artnet/Artnet.cpp: In member function 'uint16_t Artnet::read()': -.piolibdeps/Artnet/Artnet.cpp:94:40: warning: embedded '\0' in format [-Wformat-contains-nul] -sprintf((char *)id, "Art-Net\0"); -^ -.piolibdeps/Artnet/Artnet.cpp:107:54: warning: embedded '\0' in format [-Wformat-contains-nul] -sprintf((char *)shortname, "artnet arduino\0"); -^ -.piolibdeps/Artnet/Artnet.cpp:108:64: warning: embedded '\0' in format [-Wformat-contains-nul] -sprintf((char *)longname, "Art-Net -> Arduino Bridge\0"); -^ -.piolibdeps/Artnet/Artnet.cpp:143:109: warning: embedded '\0' in format [-Wformat-contains-nul] -sprintf((char *)ArtPollReply.nodereport, "%i DMX output universes active.\0", ArtPollReply.numbports); -^ -.piolibdeps/Artnet/Artnet.cpp:160:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -Indexing .pioenvs/megaatmega2560/libFrameworkArduinoVariant.a -Compiling .pioenvs/megaatmega2560/FrameworkArduino/CDC.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial.cpp.o -Archiving .pioenvs/megaatmega2560/libc78/libArtnet.a -Archiving .pioenvs/megaatmega2560/lib255/libWiFi.a -Indexing .pioenvs/megaatmega2560/libc78/libArtnet.a -Indexing .pioenvs/megaatmega2560/lib255/libWiFi.a -Compiling .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial0.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial1.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial2.cpp.o -Archiving .pioenvs/megaatmega2560/lib988/libSoftwareSerial.a -Indexing .pioenvs/megaatmega2560/lib988/libSoftwareSerial.a -Compiling .pioenvs/megaatmega2560/FrameworkArduino/HardwareSerial3.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/IPAddress.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/PluggableUSB.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/Print.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/Stream.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/Tone.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/USBCore.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/WInterrupts.c.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/WMath.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/WString.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/_wiring_pulse.S.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/abi.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/hooks.c.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/main.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/new.cpp.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/wiring.c.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/wiring_analog.c.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/wiring_digital.c.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/wiring_pulse.c.o -Compiling .pioenvs/megaatmega2560/FrameworkArduino/wiring_shift.c.o -Archiving .pioenvs/megaatmega2560/libFrameworkArduino.a -Indexing .pioenvs/megaatmega2560/libFrameworkArduino.a Linking .pioenvs/megaatmega2560/firmware.elf -Calculating size .pioenvs/megaatmega2560/firmware.elf Building .pioenvs/megaatmega2560/firmware.hex +Calculating size .pioenvs/megaatmega2560/firmware.elf AVR Memory Usage ---------------- Device: atmega2560 @@ -648,21 +358,18 @@ Data: 2559 bytes (31.2% Full) (.data + .bss + .noinit) -======================================================================================= [SUCCESS] Took 25.45 seconds ======================================================================================= +======================================================================================= [SUCCESS] Took 25.43 seconds ======================================================================================= ================================================================================================= [SUMMARY] ================================================================================================= -Environment due [SKIP] -Environment due-5500 [SKIP] -Environment megaatmega2560 [SUCCESS] -Environment megaatmega2560-5500 [SKIP] -Environment espressif8266 [SKIP] -======================================================================================= [SUCCESS] Took 25.45 seconds ======================================================================================= +Environment due [SKIP] +Environment megaatmega2560 [SUCCESS] +======================================================================================= [SUCCESS] Took 25.43 seconds ======================================================================================= livello@lserver ~/PROG/lighthub $ pio run -e due -[Wed Mar 14 02:14:22 2018] Processing due (platform: atmelsam; board: due; framework: arduino) +[Wed Mar 14 13:46:33 2018] Processing due (platform: atmelsam; board: due; framework: arduino) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- LibraryManager: Installing DueFlashStorage git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-IcfSg7-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-T8wBjH-package»… remote: Counting objects: 19, done. remote: Compressing objects: 100% (16/16), done. remote: Total 19 (delta 3), reused 15 (delta 3), pack-reused 0 @@ -670,7 +377,7 @@ remote: Total 19 (delta 3), reused 15 (delta 3), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing DmxDue git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-6V6WxO-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-nscx5F-package»… remote: Counting objects: 7, done. remote: Compressing objects: 100% (5/5), done. remote: Total 7 (delta 0), reused 5 (delta 0), pack-reused 0 @@ -678,7 +385,7 @@ remote: Total 7 (delta 0), reused 5 (delta 0), pack-reused 0 Проверка соединения… готово. LibraryManager: Installing ArduinoHttpClient git version 2.7.4 -Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-SAsCAo-package»… +Клонирование в «/home/livello/PROG/lighthub/.piolibdeps/_tmp_installing-6QUOvA-package»… remote: Counting objects: 45, done. remote: Compressing objects: 100% (41/41), done. remote: Total 45 (delta 9), reused 22 (delta 3), pack-reused 0 @@ -717,69 +424,14 @@ Dependency Graph |-- v3.1.8 | |-- v3.1 #62f0959 | |-- v1.3.0 #4db73b3 -|-- v1.0 |-- v3.1 #62f0959 +|-- v1.0 |-- #007e22e | |-- v1.1.2 #238e8fc | | |-- v1.0 #8d59205 |-- v1.3.0 #4db73b3 -Compiling .pioenvs/due/libc0c/FastLED_ID126/FastLED.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/bitswap.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/colorpalettes.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/colorutils.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/hsv2rgb.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/lib8tion.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/noise.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/power_mgt.cpp.o -Compiling .pioenvs/due/libc0c/FastLED_ID126/wiring.cpp.o -Compiling .pioenvs/due/src/dmx.cpp.o -Compiling .pioenvs/due/src/esp.cpp.o -Compiling .pioenvs/due/src/inputs.cpp.o -Compiling .pioenvs/due/src/item.cpp.o -lighthub/dmx.cpp: In function 'int itemCtrl2(char*, int, int, int, int)': -lighthub/dmx.cpp:91:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/dmx.cpp: In function 'void DMXput()': -lighthub/dmx.cpp:111:5: warning: unused variable 't' [-Wunused-variable] -int t; -^ Compiling .pioenvs/due/src/lighthub.ino.cpp.o Compiling .pioenvs/due/src/main.cpp.o -In file included from lighthub/inputs.cpp:23:0: -lighthub/item.h: In member function 'int Item::On()': -lighthub/item.h:85:33: warning: no return statement in function returning non-void [-Wreturn-type] -inline int On (){Ctrl(CMD_ON);}; -^ -lighthub/item.h: In member function 'int Item::Off()': -lighthub/item.h:86:34: warning: no return statement in function returning non-void [-Wreturn-type] -inline int Off(){Ctrl(CMD_OFF);}; -^ -lighthub/item.h: In member function 'int Item::Toggle()': -lighthub/item.h:87:40: warning: no return statement in function returning non-void [-Wreturn-type] -inline int Toggle(){Ctrl(CMD_TOGGLE);}; -^ -Compiling .pioenvs/due/src/owSwitch.cpp.o -In file included from lighthub/item.cpp:21:0: -lighthub/item.h: In member function 'int Item::On()': -lighthub/item.h:85:33: warning: no return statement in function returning non-void [-Wreturn-type] -inline int On (){Ctrl(CMD_ON);}; -^ -lighthub/item.h: In member function 'int Item::Off()': -lighthub/item.h:86:34: warning: no return statement in function returning non-void [-Wreturn-type] -inline int Off(){Ctrl(CMD_OFF);}; -^ -lighthub/item.h: In member function 'int Item::Toggle()': -lighthub/item.h:87:40: warning: no return statement in function returning non-void [-Wreturn-type] -inline int Toggle(){Ctrl(CMD_TOGGLE);}; -^ -In file included from lighthub/item.cpp:26:0: -.piolibdeps/FastLED_ID126/FastLED.h: At global scope: -.piolibdeps/FastLED_ID126/FastLED.h:17:21: note: #pragma message: FastLED version 3.001.008 -# pragma message "FastLED version 3.001.008" -^ -Compiling .pioenvs/due/src/owTerm.cpp.o -Compiling .pioenvs/due/src/utils.cpp.o In file included from lighthub/main.cpp:71:0: .piolibdeps/SPI/SPI.h:1028:8: error: 'SPIClass' does not name a type extern SPIClass SPI; @@ -858,135 +510,61 @@ else if (extArray=aJson.getArrayItem(item,I_EXT)) lighthub/main.cpp:1202:1: warning: no return statement in function returning non-void [-Wreturn-type] } //proc ^ -lighthub/owSwitch.cpp: In function 'int cntrl2408(uint8_t*, int, int)': -lighthub/owSwitch.cpp:96:6: warning: variable 'mask' set but not used [-Wunused-but-set-variable] -int mask,devnum; -^ -lighthub/owSwitch.cpp:102:7: warning: unused variable 'r' [-Wunused-variable] -int r,f; -^ -lighthub/owSwitch.cpp:102:9: warning: unused variable 'f' [-Wunused-variable] -int r,f; -^ In file included from .piolibdeps/ModbusMaster/src/ModbusMaster.h:58:0, from lighthub/main.cpp:75: .piolibdeps/ModbusMaster/src/util/crc16.h: At global scope: .piolibdeps/ModbusMaster/src/util/crc16.h:71:17: warning: 'uint16_t crc16_update(uint16_t, uint8_t)' defined but not used [-Wunused-function] static uint16_t crc16_update(uint16_t crc, uint8_t a) ^ -lighthub/owTerm.cpp: In function 'int owUpdate()': -lighthub/owTerm.cpp:45:9: warning: unused variable 'sr' [-Wunused-variable] -short sr; +Compiling .pioenvs/due/libe82/DueFlashStorage/efc.cpp.o +Compiling .pioenvs/due/libe82/DueFlashStorage/flash_efc.cpp.o +Compiling .pioenvs/due/lib8c0/Wire/Wire.cpp.o +.piolibdeps/DueFlashStorage/src/flash_efc.cpp: In function 'uint32_t flash_is_locked(uint32_t, uint32_t)': +.piolibdeps/DueFlashStorage/src/flash_efc.cpp:669:11: warning: variable 'ul_error' set but not used [-Wunused-but-set-variable] +uint32_t ul_error; ^ -lighthub/owTerm.cpp:77:1: warning: no return statement in function returning non-void [-Wreturn-type] -} +Compiling .pioenvs/due/lib5a0/DS2482_OneWire/DS2482_OneWire.cpp.o +In file included from /home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.cpp:25:0: +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.h: In constructor 'TwoWire::TwoWire(Twi*, void (*)(), void (*)())': +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.h:96:7: warning: 'TwoWire::twi' will be initialized after [-Wreorder] +Twi *twi; ^ -Compiling .pioenvs/due/libe82/DueFlashStorage/DueFlashStorage.cpp.o -lighthub/item.cpp: In member function 'virtual int Item::Ctrl(short int, short int, int*, boolean)': -lighthub/item.cpp:482:13: warning: unused variable 'tval' [-Wunused-variable] -int tval = 7; // this is 111 in binary and is used as an eraser +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.h:72:10: warning: 'uint8_t TwoWire::rxBufferIndex' [-Wreorder] +uint8_t rxBufferIndex; ^ -lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': -lighthub/item.cpp:668:11: warning: unused variable 'j' [-Wunused-variable] -uint8_t j, result; +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.cpp:95:1: warning: when initialized here [-Wreorder] +TwoWire::TwoWire(Twi *_twi, void(*_beginCb)(void), void(*_endCb)(void)) : ^ -lighthub/item.cpp:668:14: warning: unused variable 'result' [-Wunused-variable] -uint8_t j, result; +In file included from /home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.cpp:25:0: +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.h:108:16: warning: 'TwoWire::status' will be initialized after [-Wreorder] +TwoWireStatus status; ^ -lighthub/item.cpp:669:12: warning: unused variable 'data' [-Wunused-variable] -uint16_t data[1]; +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.h:90:30: warning: 'void (* TwoWire::onBeginCallback)()' [-Wreorder] +void (*onBeginCallback)(void); ^ +/home/livello/.platformio/packages/framework-arduinosam/libraries/__cores__/sam/Wire/src/Wire.cpp:95:1: warning: when initialized here [-Wreorder] +TwoWire::TwoWire(Twi *_twi, void(*_beginCb)(void), void(*_endCb)(void)) : +^ +Compiling .pioenvs/due/libecc/ModbusMaster/ModbusMaster.cpp.o +.piolibdeps/DS2482_OneWire/DS2482_OneWire.cpp: In member function 'uint8_t OneWire::waitOnBusy()': +.piolibdeps/DS2482_OneWire/DS2482_OneWire.cpp:131:10: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized] +uint8_t status; +^ +Compiling .pioenvs/due/lib704/DallasTemperature/DallasTemperature.cpp.o *** [.pioenvs/due/src/main.cpp.o] Error 1 -lighthub/item.cpp: In member function 'int Item::checkModbus()': -lighthub/item.cpp:890:13: warning: unused variable 'mask' [-Wunused-variable] -short mask = getArg(2); +.piolibdeps/ModbusMaster/src/ModbusMaster.cpp: In member function 'uint8_t ModbusMaster::requestFrom(uint16_t, uint16_t)': +.piolibdeps/ModbusMaster/src/ModbusMaster.cpp:94:33: warning: 'read' is used uninitialized in this function [-Wuninitialized] +_u8ResponseBufferLength = read; ^ -lighthub/item.cpp: In member function 'int Item::checkModbus(int)': -lighthub/item.cpp:932:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] -if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy -^ -lighthub/item.cpp:932:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses] -if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy -^ -lighthub/item.cpp:950:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::Pool()': -lighthub/item.cpp:962:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'virtual int Item::Ctrl(short int, short int, int*, boolean)': -lighthub/item.cpp:517:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': -lighthub/item.cpp:684:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/utils.cpp: In function 'long unsigned int freeRam()': -lighthub/utils.cpp:103:9: warning: unused variable 'ramstart' [-Wunused-variable] -char *ramstart = (char *) 0x20070000; -^ -lighthub/utils.cpp:104:9: warning: unused variable 'ramend' [-Wunused-variable] -char *ramend = (char *) 0x20088000; -^ -lighthub/item.cpp: In member function 'int Item::VacomSetHeat(int, int8_t, int8_t)': -lighthub/item.cpp:715:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In function 'int modbusSet(int, uint16_t, int, uint16_t)': -lighthub/item.cpp:787:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::checkFM()': -lighthub/item.cpp:878:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::checkModbus()': -lighthub/item.cpp:921:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/utils.cpp: In function 'byte HEX2DEC(char)': -lighthub/utils.cpp:59:10: warning: 'v' may be used uninitialized in this function [-Wmaybe-uninitialized] -return v; -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'boolean DueFlashStorage::write(uint32_t, byte)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:23:9: warning: unused variable 'data' [-Wunused-variable] -byte *data; -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'boolean DueFlashStorage::write(uint32_t, byte*, uint32_t)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:62:29: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] -if (((uint32_t)FLASH_START+address & 3) != 0) { -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'boolean DueFlashStorage::write_unlocked(uint32_t, byte)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:94:9: warning: unused variable 'data' [-Wunused-variable] -byte *data; -^ -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp: In member function 'boolean DueFlashStorage::write_unlocked(uint32_t, byte*, uint32_t)': -.piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:121:29: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] -if (((uint32_t)FLASH_START+address & 3) != 0) { -^ -lighthub/item.cpp:916:29: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized] -nextItem.checkModbus(data); -^ -In file included from .piolibdeps/ModbusMaster/src/ModbusMaster.h:58:0, -from lighthub/item.cpp:29: -.piolibdeps/ModbusMaster/src/util/crc16.h: At global scope: -.piolibdeps/ModbusMaster/src/util/crc16.h:71:17: warning: 'uint16_t crc16_update(uint16_t, uint8_t)' defined but not used [-Wunused-function] -static uint16_t crc16_update(uint16_t crc, uint8_t a) -^ -========================================================================================= [ERROR] Took 6.61 seconds ========================================================================================= +========================================================================================= [ERROR] Took 6.55 seconds ========================================================================================= ================================================================================================= [SUMMARY] ================================================================================================= -Environment due [ERROR] -Environment due-5500 [SKIP] -Environment megaatmega2560 [SKIP] -Environment megaatmega2560-5500 [SKIP] -Environment espressif8266 [SKIP] -========================================================================================= [ERROR] Took 6.61 seconds ========================================================================================= +Environment due [ERROR] +Environment megaatmega2560 [SKIP] +========================================================================================= [ERROR] Took 6.55 seconds ========================================================================================= livello@lserver ~/PROG/lighthub $ pio run -e megaatmega2560 -[Wed Mar 14 02:14:38 2018] Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino) +[Wed Mar 14 13:46:43 2018] Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option PLATFORM: Atmel AVR > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560) @@ -1018,19 +596,19 @@ Dependency Graph |-- v1.0 #8d59205 |-- v2.6 #f029640 |-- #3d39995 -| |-- v1.1.2 #238e8fc -| | |-- v1.0 #8d59205 | |-- v1.2.7 | | |-- v1.0 #8d59205 +| |-- v1.1.2 #238e8fc +| | |-- v1.0 #8d59205 |-- v3.1.8 -| |-- v3.1 #62f0959 -| |-- v1.0 | |-- v1.3.0 #4db73b3 -|-- v1.0.0 #a41b206 -|-- v2.0 -|-- #acde3dc +| |-- v1.0 +| |-- v3.1 #62f0959 |-- v1.0 +|-- v2.0 |-- #bf7ffb2 +|-- #acde3dc +|-- v1.0.0 #a41b206 Compiling .pioenvs/megaatmega2560/src/dmx.cpp.o Compiling .pioenvs/megaatmega2560/src/item.cpp.o Compiling .pioenvs/megaatmega2560/src/lighthub.ino.cpp.o @@ -1360,41 +938,6 @@ retCode = flash_write((uint32_t)FLASH_START+address, data, dataLength, 1); .piolibdeps/DueFlashStorage/src/DueFlashStorage.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ -lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': -lighthub/item.cpp:668:11: warning: unused variable 'j' [-Wunused-variable] -uint8_t j, result; -^ -lighthub/item.cpp:668:14: warning: unused variable 'result' [-Wunused-variable] -uint8_t j, result; -^ -lighthub/item.cpp:669:12: warning: unused variable 'data' [-Wunused-variable] -uint16_t data[1]; -^ -*** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/DueFlashStorage.cpp.o] Error 1 -lighthub/item.cpp: In member function 'int Item::checkModbus()': -lighthub/item.cpp:914:93: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (modbusitem && nextItem.isValid() && nextItem.itemType==CH_MODBUS && nextItem.getArg(0)==addr && nextItem.getArg(1)==reg) -^ -lighthub/item.cpp:914:121: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] -if (modbusitem && nextItem.isValid() && nextItem.itemType==CH_MODBUS && nextItem.getArg(0)==addr && nextItem.getArg(1)==reg) -^ -lighthub/item.cpp:890:13: warning: unused variable 'mask' [-Wunused-variable] -short mask = getArg(2); -^ -lighthub/item.cpp: In member function 'int Item::checkModbus(int)': -lighthub/item.cpp:932:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] -if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy -^ -lighthub/item.cpp:932:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses] -if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy -^ -lighthub/item.cpp:950:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::Pool()': -lighthub/item.cpp:962:3: warning: no return statement in function returning non-void [-Wreturn-type] -} -^ In file included from .piolibdeps/DueFlashStorage/src/efc.cpp:44:0: .piolibdeps/DueFlashStorage/src/efc.h:116:19: error: 'Efc' was not declared in this scope uint32_t efc_init(Efc *p_efc, uint32_t ul_access_mode, uint32_t ul_fws); @@ -1632,31 +1175,8 @@ uint32_t ul_argument) .piolibdeps/DueFlashStorage/src/efc.cpp:337:1: error: expected '}' at end of input } ^ +*** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/DueFlashStorage.cpp.o] Error 1 *** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/efc.cpp.o] Error 1 -lighthub/item.cpp: In member function 'virtual int Item::Ctrl(short int, short int, int*, boolean)': -lighthub/item.cpp:517:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': -lighthub/item.cpp:684:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::VacomSetHeat(int, int8_t, int8_t)': -lighthub/item.cpp:715:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In function 'int modbusSet(int, uint16_t, int, uint16_t)': -lighthub/item.cpp:787:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::checkFM()': -lighthub/item.cpp:878:3: warning: control reaches end of non-void function [-Wreturn-type] -} -^ -lighthub/item.cpp: In member function 'int Item::checkModbus()': -lighthub/item.cpp:921:1: warning: control reaches end of non-void function [-Wreturn-type] -} -^ In file included from .piolibdeps/DueFlashStorage/src/flash_efc.h:48:0, from .piolibdeps/DueFlashStorage/src/flash_efc.cpp:46: .piolibdeps/DueFlashStorage/src/efc.h:116:19: error: 'Efc' was not declared in this scope @@ -1803,6 +1323,64 @@ uint16_t *pus_page, uint16_t *pus_offset) } ^ *** [.pioenvs/megaatmega2560/libe82/DueFlashStorage/flash_efc.cpp.o] Error 1 +lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': +lighthub/item.cpp:668:11: warning: unused variable 'j' [-Wunused-variable] +uint8_t j, result; +^ +lighthub/item.cpp:668:14: warning: unused variable 'result' [-Wunused-variable] +uint8_t j, result; +^ +lighthub/item.cpp:669:12: warning: unused variable 'data' [-Wunused-variable] +uint16_t data[1]; +^ +lighthub/item.cpp: In member function 'int Item::checkModbus()': +lighthub/item.cpp:914:93: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] +if (modbusitem && nextItem.isValid() && nextItem.itemType==CH_MODBUS && nextItem.getArg(0)==addr && nextItem.getArg(1)==reg) +^ +lighthub/item.cpp:914:121: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] +if (modbusitem && nextItem.isValid() && nextItem.itemType==CH_MODBUS && nextItem.getArg(0)==addr && nextItem.getArg(1)==reg) +^ +lighthub/item.cpp:890:13: warning: unused variable 'mask' [-Wunused-variable] +short mask = getArg(2); +^ +lighthub/item.cpp: In member function 'int Item::checkModbus(int)': +lighthub/item.cpp:932:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] +if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy +^ +lighthub/item.cpp:932:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses] +if (getVal()!=d || d && cmd==CMD_OFF || d && cmd==CMD_HALT) //volume changed or turned on manualy +^ +lighthub/item.cpp:950:3: warning: no return statement in function returning non-void [-Wreturn-type] +} +^ +lighthub/item.cpp: In member function 'int Item::Pool()': +lighthub/item.cpp:962:3: warning: no return statement in function returning non-void [-Wreturn-type] +} +^ +lighthub/item.cpp: In member function 'virtual int Item::Ctrl(short int, short int, int*, boolean)': +lighthub/item.cpp:517:3: warning: control reaches end of non-void function [-Wreturn-type] +} +^ +lighthub/item.cpp: In member function 'int Item::VacomSetFan(int8_t, int8_t)': +lighthub/item.cpp:684:1: warning: control reaches end of non-void function [-Wreturn-type] +} +^ +lighthub/item.cpp: In member function 'int Item::VacomSetHeat(int, int8_t, int8_t)': +lighthub/item.cpp:715:3: warning: control reaches end of non-void function [-Wreturn-type] +} +^ +lighthub/item.cpp: In function 'int modbusSet(int, uint16_t, int, uint16_t)': +lighthub/item.cpp:787:3: warning: control reaches end of non-void function [-Wreturn-type] +} +^ +lighthub/item.cpp: In member function 'int Item::checkFM()': +lighthub/item.cpp:878:3: warning: control reaches end of non-void function [-Wreturn-type] +} +^ +lighthub/item.cpp: In member function 'int Item::checkModbus()': +lighthub/item.cpp:921:1: warning: control reaches end of non-void function [-Wreturn-type] +} +^ .piolibdeps/aJson/aJSON.cpp: In member function 'virtual bool aJsonEEPROMStream::available()': .piolibdeps/aJson/aJSON.cpp:145:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (addr+offset