1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

4405 Commits

Author SHA1 Message Date
Earle F. Philhower, III
cbf44fb343
Release 3.0.1 (#8179)
Apply #8178 to the publish action, too.
3.0.1
2021-06-26 11:26:32 -07:00
Earle F. Philhower, III
f6dcda9c8e
Release 3.0.1 (#8178)
Fix release packager issue.  Seems when variable set in $GITHUB_ENV
quotation marks are not removed, resulting in URLs with
http://ddd.dd/blah/"3.0.1"/release and JSON entries with the same
quotation problem.
2021-06-26 11:14:17 -07:00
Earle F. Philhower, III
af513f666f
Release 3.0.1 (#8177) 2021-06-26 10:44:22 -07:00
Max Prokhorov
019fab4e02
pio: use CCFLAGS for -Werror (#8175)
Also adds some comments referencing SCons documentation
2021-06-25 18:38:46 -07:00
david gauchard
d2a3cbeb6f
Documentation: Note about options on PIO (#8174) 2021-06-25 15:44:02 -07:00
Earle F. Philhower, III
d1c7c046d5
Don't crash when includeing LittleFS.h w/no FS (#8173)
* Don't crash when includeing LittleFS.h w/no FS

The LittleFS constructor could cause a divide-by-zero error and crash the
chip during pre-main startup (i.e. when the constructors were called).

Avoid by only initializing the LittleFS control structure when there is
a filesystem specified in the flash layout.

* Be even more paranoid on begin() and format()
2021-06-26 00:30:42 +02:00
david gauchard
20de82588e
SDFS: fix AvailableForWrite: do not always return 0 when space is available (#8167) 2021-06-25 17:19:17 +02:00
Matthew Smith
d99dd5d3f5
Update debug level list link (#8172) 2021-06-25 11:29:40 +02:00
david gauchard
04c2322721
github action: enforce issue detection with bash (#8168) 2021-06-24 15:25:05 -07:00
Dirk O. Kaar
44ec4bea56
Remove some no longer applicable artifacts from .gitignore (#8170) 2021-06-24 15:10:14 -07:00
Earle F. Philhower, III
90b4c6f299
Add errors on invalid/missing function return type (#8165)
GCC 10.x seems to have a knack for crashing when a function which is declared
to return a value does not.  Add a warning, present on all builds, when this
is the case.  For more info see https://github.com/esp8266/Arduino/discussions/8160

Thanks to @hreintke and @mcspr for the tips.
2021-06-24 12:44:57 -07:00
david gauchard
d3136738ad
fix readthedoc python dependencies (#8166) 2021-06-23 21:08:26 +02:00
david gauchard
32fad07a70
ESP266httpUpdate: remove dead API and fix doc (#8063) 2021-06-22 18:22:42 -07:00
david gauchard
d283541380
documentation: Arduino IDE options: fix hyperlinks and format (#8158)
(this time, sphinx was used locally)
2021-06-22 03:39:53 +02:00
david gauchard
e55dfc3a0e
Documentation: Arduino IDE specific options for esp82xx (#8154) 2021-06-21 17:03:14 -07:00
Silvano Cerza
78e63280ba
Add missing menu.UploadTool name definition (#8153) 2021-06-21 11:12:05 +02:00
Earle F. Philhower, III
45e7976c50
Fix stopAllExcept with WiFiClientSecure (#8136)
Fixes #8079

Because WiFiClientSecure inherits WiFiClient, and WiFiClientSecureCtx also
inherits WiFiClient, they both end up in the list of TCP connections that
are used for WiFiClient::stopAllExcept().  This would cause the underlying
SSL connection to be closed whenever you attempted to
stopAllExcept(WiFiClientSecure)

Fix by adding a "_owned"(by) pointer in the WiFiClient object which points to
nullptr (default case) or to the associated lower-layer connection.
When stopping all connections except one, only look at the lowermost
connections.
2021-06-20 10:43:05 -07:00
david gauchard
2f37c967e1
gnu source: honoring libc requirements (#8147) 2021-06-20 10:31:50 -07:00
Juraj Andrássy
15da1635b6
LwipIntfDev.h - apply static DNS config (#8076)
DNS setting was not applied. Additionally default values for dns parameters in config are added.
2021-06-18 11:21:07 +02:00
idolpx
1a5ef71298
Change protocol detection so uppercase or lowercase works (#8137)
Make protocol detection case insensitive
2021-06-17 15:48:30 -07:00
david gauchard
7f78278969
makecorever.py: restore ARDUINO_ESP8266_GIT_VER even without .git/ (#8138)
fixes #8134
2021-06-18 00:03:08 +02:00
Earle F. Philhower, III
f1310c046b
Make String reallocation warning more descriptive (#8131)
Fixes #8130
2021-06-17 08:01:32 -07:00
david gauchard
52be27dfb5
Release process fix #2 (#8127)
* release script: fix variable name error
* Release process in README is decribed twice. Syncing the two walk-throughs.
* adding ARDUINO_ESP8266_VERSION reflecting exactly what's passed to `makecorever.py -v`
* remove "unix-" in version name (which was present even for windows but never used)
2021-06-17 00:51:15 +02:00
david gauchard
2897679060
Release process fix & major/minor/rev macro addition (#8126)
* update release process to the new CI
* generate ARDUINO_ESP8266_{MAJOR,MINOR,REVISION} in core_version.h
* makecorever: new option `-r` for release
2021-06-16 15:51:17 +02:00
Maximilian Gerhardt
ff041942e0
Remove include and lib folders removed since 3.0.0 core (#8125) 2021-06-15 21:19:49 +02:00
david gauchard
b4774edbfb
httpclient: remove old example (#8111) 2021-06-09 10:04:10 -07:00
Dirk O. Kaar
40116feb33
Normalize core header's include guard. (#8110) 2021-06-09 09:55:27 -07:00
Earle F. Philhower, III
2185f9bd73
BREAKING - "i2s.h" removed, I2S library added (#8108)
* BREAKING - "i2s.h" removed, I2S library added

An "i2S.h" header was present in prior cores, but this conflicts with the
Arduino standard I2S.h header for the I2S class under Windows (because of
case insensitivity).

Initial 3.0.0 release has a redirect "i2s.h" file in the cores directory to
redirect to the "I2S.h" file in the library, but under Windows this resulted
in the IDE not building the I2S library and link errors.

Remove the offending header.  Code will need to mode to including "I2S.h"
instead (which will include both the Arduino class as well as the low-level
definitions).

Fixes #8107

* Update examples to use proper I2S.h version
2021-06-08 23:12:23 +02:00
Earle F. Philhower, III
e8b411fafb
Update toolchain to gcc 10.3 w/patches (#8104)
* Update toolchain to gcc 10.3 w/patches

* Bump GIT version to clear GH CI cache
2021-06-06 12:41:06 -07:00
Earle F. Philhower, III
74d675cffa
Update to GCC 10.3 and toolchain rebuild (#8103)
Fixes #8069

GCC 10.3 has a patch to stop escaping the initial : in Windows paths which
is causing Arduino and other tools to fail dependency checks and rebuild
everything on every compile.
2021-06-05 15:27:58 -07:00
Earle F. Philhower, III
114a726798
Update toolchain to fix pgm_read_float_unaligned (#8091)
Update toolchain to fix pgm_read_float_unaligned
Fixes #8083
2021-06-04 17:06:16 +02:00
david gauchard
a183e3fce5
more of Use optimal bundled library name (#8098)
Ref: https://github.com/esp8266/Arduino/pull/8088#issuecomment-853711167
2021-06-03 13:20:11 +02:00
david gauchard
325619a4c2
makeword: sync header and implementation (#8097)
makeword: sync header and implementation
2021-06-02 23:42:31 +02:00
Valerii Koval
e5489cfd99
Synchronize PlatformIO build script (#8092) 2021-06-01 07:55:08 -07:00
per1234
e21ae06699
Use optimal bundled library names (#8088)
When multiple libraries contain files matching an #include directive in the program, the Arduino build system must pick
one to use for compilation. Multiple factors are used in order to make an intelligent determination of which library is
best.

In order to enhance this determination, the closeness of match between the library.properties name value and the
filename in the #include directive is being added as one of those factors. This new factor is referred to as
"Library Name Priority".

Unfortunately, this change can result in platform bundled libraries which had previously been correctly correctly chosen
no longer being given priority over their equivalent standalone libraries, which may be incompatible or not optimized
for the platform's boards.

This priority inversion only occurs when all the following conditions are true:

- There is a standalone library installed which provides a header filename collision.
- The platform bundled library is architecture optimized (e.g., architectures=esp32).
- The standalone library is architecture compatible (architectures=*).
- The standalone library has equal "Folder Name Priority".
- The standalone library has better "Library Name Priority" (e.g., name=SD vs name=SD(ESP32) for a library with primary
  header file SD.h.

The fix is to simply give the platform bundled library a perfect "Library Name Priority".

Some platform bundled libraries were given a modified name as a workaround to a bug in the Arduino IDE's Library Manager
which caused Library Manager to always show the library as updatable under specific circumstances. That bug was fixed in
Arduino IDE 1.8.6, ~3 years ago.
2021-05-31 07:34:35 -07:00
Develo
bf6f3e7c53
Merge pull request #8080 from dok-net/swserial
Update EspSoftwareSerial to bug fix release 6.12.6
2021-05-27 16:36:06 -04:00
Dirk O. Kaar
fa7a330741 Update EspSoftwareSerial to bug fix release 6.12.6 2021-05-27 21:33:15 +02:00
Earle F. Philhower, III
60fe7b4ca8
Add code-spell spelling checks to CI (#8067)
Help find and fix silly spelling errors as they are added to the repo.
2021-05-23 08:53:04 -07:00
david gauchard
78a2ed6bd8
release script: protect bash variables and add logs (#8074)
Ref: https://github.com/esp8266/Arduino/issues/8049
Ref: empty variable https://github.com/esp8266/Arduino/runs/2592755965?check_suite_focus=true#step:5:35
2021-05-23 15:26:13 +02:00
Earle F. Philhower, III
8dc80b5ef6
Re-add mklittlefs to package.json (#8060)
Fix #8057
2021-05-21 15:33:44 -07:00
Develo
d7d03f9a41
Merge pull request #6869 from dok-net/refactooptimisticyield
Minor yield() cleanup: optimistic_yield, proper polledTimeout use
2021-05-18 21:33:51 -04:00
Dirk O. Kaar
7571c729f5 Revert change after review comments. 2021-05-18 15:43:27 +02:00
Dirk O. Kaar
95b06cee0b Explain function of special PolledTimeout to the code reader 2021-05-18 15:43:27 +02:00
Dirk O. Kaar
f382fc9d77 Refactoring to PolledTimeout or optimistic_yield on the grounds that these are not wait loops on slow input. 2021-05-18 15:43:27 +02:00
Dirk O. Kaar
117f163099
Move _stopPWM in phase PWM to IRAM (#8048) 2021-05-17 14:50:33 -07:00
Wong "Sadale" Cho Ching
25e1b3b61c
Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work inside ISR. Fixes #8043 (#8044) 2021-05-17 19:56:24 +02:00
david gauchard
90f611f984
back to dev (3.0.1) (#8039) 2021-05-15 19:42:38 -07:00
david gauchard
efb0341a41
ditto on the draft action file (#8037) 3.0.0 2021-05-16 03:17:15 +02:00
david gauchard
75e911354e
update release github action (#8036)
- following this error message
  Error: Unable to process command '::set-env name=TRAVIS_TAG::3.0.0' successfully.
  Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
- this guide:
  https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#environment-files
2021-05-16 03:00:15 +02:00
david gauchard
7b6baf0fed
release 3.0.0 (#8034) 2021-05-16 02:06:06 +02:00