1. 27 May, 2022 9 commits
    • Earle F. Philhower, III's avatar
      Remove -Wextra warnings (#6782) · 99ba0e1c
      Earle F. Philhower, III authored
      When building the core with `-Wextra` a few locations have `case:`
      fall throughs or skipped field initializers.
      
      Add proper comments for B64 cases to avoid GCC warnings
      
      Initialized unused fields in Tone and WiFiGeneric to avoid missing
      field initializer warnings.
      
      ````
      2022-05-19T17:40:42.2280300Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c: In function 'base64_decode_block_signed':
      2022-05-19T17:40:42.2282122Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c:42:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
      2022-05-19T17:40:42.2283247Z          *plainchar    = (fragment & 0x03f) << 2;
      2022-05-19T17:40:42.2284240Z          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
      2022-05-19T17:40:42.2285087Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c:43:7: note: here
      2022-05-19T17:40:42.2285435Z        case step_b:
      2022-05-19T17:40:42.2285691Z        ^~~~
      2022-05-19T17:40:42.2286515Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c:53:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
      2022-05-19T17:40:42.2286932Z          *plainchar    = (fragment & 0x00f) << 4;
      2022-05-19T17:40:42.2287219Z          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
      2022-05-19T17:40:42.2287609Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c:54:7: note: here
      2022-05-19T17:40:42.2287909Z        case step_c:
      2022-05-19T17:40:42.2288200Z        ^~~~
      2022-05-19T17:40:42.2288972Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c:64:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
      2022-05-19T17:40:42.2289491Z          *plainchar    = (fragment & 0x003) << 6;
      2022-05-19T17:40:42.2289745Z          ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
      2022-05-19T17:40:42.2290162Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cdecode.c:65:7: note: here
      2022-05-19T17:40:42.2290509Z        case step_d:
      2022-05-19T17:40:42.2290714Z        ^~~~
      2022-05-19T17:40:42.2482744Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cencode.c: In function 'base64_encode_block':
      2022-05-19T17:40:42.2484713Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cencode.c:46:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
      2022-05-19T17:40:42.2485415Z              result = (fragment & 0x003) << 4;
      2022-05-19T17:40:42.2486713Z              ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
      2022-05-19T17:40:42.2487696Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cencode.c:47:9: note: here
      2022-05-19T17:40:42.2488519Z          case step_B:
      2022-05-19T17:40:42.2489175Z          ^~~~
      2022-05-19T17:40:42.2492458Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cencode.c:56:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
      2022-05-19T17:40:42.2493351Z              result = (fragment & 0x00f) << 2;
      2022-05-19T17:40:42.2494227Z              ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
      2022-05-19T17:40:42.2496324Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/libb64/cencode.c:57:9: note: here
      2022-05-19T17:40:42.2496937Z          case step_C:
      2022-05-19T17:40:42.2497261Z          ^~~~
      2022-05-19T17:40:44.6354962Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp: In function 'void setToneChannel(uint8_t)':
      2022-05-19T17:40:44.6356417Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:99:5: warning: missing initializer for member 'tone_msg_t::pin' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6357120Z      };
      2022-05-19T17:40:44.6358732Z      ^
      2022-05-19T17:40:44.6364470Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:99:5: warning: missing initializer for member 'tone_msg_t::frequency' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6367914Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:99:5: warning: missing initializer for member 'tone_msg_t::duration' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6372875Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp: In function 'void noTone(uint8_t)':
      2022-05-19T17:40:44.6373943Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:110:5: warning: missing initializer for member 'tone_msg_t::frequency' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6375154Z      };
      2022-05-19T17:40:44.6375825Z      ^
      2022-05-19T17:40:44.6379852Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:110:5: warning: missing initializer for member 'tone_msg_t::duration' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6383291Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:110:5: warning: missing initializer for member 'tone_msg_t::channel' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6388688Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp: In function 'void tone(uint8_t, unsigned int, long unsigned int)':
      2022-05-19T17:40:44.6389829Z /home/runner/arduino_ide/hardware/espressif/esp32/cores/esp32/Tone.cpp:128:5: warning: missing initializer for member 'tone_msg_t::channel' [-Wmissing-field-initializers]
      2022-05-19T17:40:44.6390677Z      };
      2022-05-19T17:40:44.6391420Z      ^
      2022-05-19T17:42:00.6768353Z /home/runner/arduino_ide/hardware/espressif/esp32/libraries/WiFi/src/WiFiGeneric.cpp: In static member function 'static bool WiFiGenericClass::setDualAntennaConfig(uint8_t, uint8_t, wifi_rx_ant_t, wifi_tx_ant_t)':
      2022-05-19T17:42:00.6769293Z /home/runner/arduino_ide/hardware/espressif/esp32/libraries/WiFi/src/WiFiGeneric.cpp:1333:5: warning: missing initializer for member 'wifi_ant_config_t::rx_ant_default' [-Wmissing-field-initializers]
      2022-05-19T17:42:00.6769658Z      };
      2022-05-19T17:42:00.6769824Z      ^
      ````
      99ba0e1c
    • sonictl's avatar
      Update littlefsbuilder.py (#6774) · d32d70dc
      sonictl authored
      add a comment to make it clear, since platformIO still creating the `spiffs.bin` for filesystem image. The file name `spiffs.bin` is so much CONFUSING! it makes the user fill the LittleFS creating is fail.
      d32d70dc
    • Abdelatif Guettouche's avatar
      6b93a6c2
    • sweetlilmre's avatar
      Fix timerAttachInterrupt() and timerDetachInterrupt() in esp32-hal-timer.c (#6763) · f9423ab8
      sweetlilmre authored
      * Fix timerAttachInterrupt() and timerDetachInterrupt() for migration to IDF 4.4
      
      * Fixing log messages as per request
      f9423ab8
    • Michael Ammann's avatar
      reduce stack size requirement for this library by 4k my moving a buffer to heap. (#6745) · e5913c36
      Michael Ammann authored
      Better allocate the buffer for f_mkfs from the heap otherwise the stack requirement of this library is huge due to a work buffer allocated for f_mkfs in sdcard_mount. The work buffer is only needed if argument format_if_empty is set true (which is by default false). 
      This change is quite important if you plan to use this library in a task. as now it increased the tasks stacks size by 4k, even this memory is never used if users are not aware of the large stack requirement during init this library may have other variables on stack that would have written memory outsides its range which can cause various side effects.
      Co-authored-by: default avatarJan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
      e5913c36
    • h-actsafe's avatar
      BluetoothSerial : Re-set _isRemoteAddressSet to false if connect() fails. (#6728) · 247bca8b
      h-actsafe authored
      The internal _isRemoteAddressSet variable is set to true
      when calling connect() functions. If connecting fails _isRemoteAddressSet
      needs to be re-set to false, otherwise other functions, such as
      discover() will fail without clear error messages.
      247bca8b
    • Rotzbua's avatar
      Doc: remove specific mention of wifi encryption... (#6671) · 46a026a4
      Rotzbua authored
      ... as availability depends on compilation parameters.
      46a026a4
    • Jan Procházka's avatar
      adc fixes and improvements (#6799) · 2cb664ee
      Jan Procházka authored
      Fixed channel / unit selection for ESP32C3 (has only 5 channels on 1 adc unit).
      
      Removed unnecessary includes.
      
      Fixed different attenuation on channels to be taken in care in __analogReadMilliVolt.
      
      All chips in __analogReadMilliVolts now use adc characteristics + calculation from raw to voltage as ESP32 does.
      2cb664ee
    • Rodrigo Garcia's avatar
      adds verbose message for WPA3 (#6812) · 2cde553e
      Rodrigo Garcia authored
      2cde553e
  2. 25 May, 2022 1 commit
  3. 19 May, 2022 1 commit
  4. 18 May, 2022 2 commits
  5. 16 May, 2022 2 commits
  6. 13 May, 2022 3 commits
  7. 11 May, 2022 5 commits
  8. 10 May, 2022 1 commit
  9. 09 May, 2022 7 commits
  10. 04 May, 2022 5 commits
    • me-no-dev's avatar
      Update core version · 0b3f1a9f
      me-no-dev authored
      0b3f1a9f
    • Sergei Silnov's avatar
      Upload component to the registry on any tag (#6688) · 6707ceb6
      Sergei Silnov authored
      upload-idf-component.yml action was only running for tags like v*, while in this project tags like 2.0.3 are used. With this change, the workflow will run for all tags.
      6707ceb6
    • DeuxVis's avatar
      Fix uploader tool for ESPduino32 board (#6665) · 142fceb8
      DeuxVis authored
      142fceb8
    • Unexpected Maker's avatar
      Added non-destructive TinyUF2 support for UM ESP32-S3 boards (#6668) · ba591fd9
      Unexpected Maker authored
      Implemented a new method for allowing folks to preserve their TinyUF2 bootloader setup when flashing their boards via Arduino IDE, without being locked out of not using it if they want to use a different partition.
      
      Adafruit had already added support for keeping (reflashing) the TinyUF2 bootloader when flashing via Arduino IDE (thanks @ladyada ), but the issue with it is it doesn't allow users to not choose to use it. Even if they select a specific partition scheme from the partition drop down list, it ignores that selection and only does the TinyUF2 partitioning/bootloader thing.
      
      We wanted to let users choose between keeping their TinyUF2 partitioning and bootloader, or choose another partition scheme and have the TinyUF2 support disabled and just operate like they would expect.
      
      We've implemented this by adding the TinyUF2 support as a partition scheme option, and using these build options in platform.txt to choose to use teh UF2 path or use the standard path.
      ba591fd9
    • Valerii Koval's avatar
      Properly handle ARDUINO_PARTITION define in PlatformIO (#6681) · 4453ca54
      Valerii Koval authored
      This fixes possible issues when developers specify arbitrary partition files
      using relative or absolute paths.
      
      Additionally, hyphens in filenames are replaced with underscores to
      avoid compilation warnings "ISO C++11 requires whitespace after the macro name"
      
      Resolves platformio/platform-espressif32#787
      4453ca54
  11. 29 Apr, 2022 1 commit
    • Rodrigo Garcia's avatar
      Fixes INADDR_NONE (#6659) · ce2cd111
      Rodrigo Garcia authored
      Description of Change
      
      Fixes IPAddress INADDR_NONE declaration when using Arduino WiFi or ETH.
      This symbol was defined as 0xffffffff by lwip /inet.h, making it impossible to use INADDR_NONE correctly.
      
      This PR only works when <wifi-provisioning/wifi_config.h> has a modification to include <lwip/ip4_addr.h> instead of <lwip/inet.h>. This will be done directly to the sdk folder in the github structure and it has been fixed in IDF by a separated Merge Request. This will be reflected in the future, for good.
      
      Tests scenarios
      
      This PR was tested with all Arduino WiFi examples, including AsyncUDP. Also with ETH examples.
      It was also tested for #6610 test cases.
      Testing done for ESP32, ESP32-S2, ESP32-C3 and ESP32-S3.
      
      Related links
      
      fixes #6610
      fixes #6247
      fixes #4732
      ce2cd111
  12. 28 Apr, 2022 1 commit
    • Me No Dev's avatar
      Add more controls over WiFi.begin and WiFi.scan (#6651) · 5f6d093d
      Me No Dev authored
      Added options to WiFi STA for connect:
      - setMinSecurity: default WIFI_AUTH_WPA2_PSK
      - setScanMethod: default WIFI_FAST_SCAN
      - setSortMethod: default WIFI_CONNECT_AP_BY_SIGNAL (required all channels scan method)
      
      Added parameters for SSID and BSSID to WiFi.scanNetworks()
      
      Fixes: #6485
      Fixes: Any issue about WiFi connecting slower now than in 1.0.x
      5f6d093d
  13. 27 Apr, 2022 2 commits