Angus Gratton
778ebb4dba
Merge branch 'bugfix/efuse_get_coding_scheme_and_ut_v4.0' into 'release/v4.0'
...
efuse: Fix get_coding_scheme() using ESP_EARLY_LOG* instead of ESP_LOG* (v4.0)
See merge request espressif/esp-idf!8361
2020-04-16 14:29:39 +08:00
Marius Vikhammer
93b8fcf664
app_update: fix test failure for get_app_elf_sha256 test
...
Commit fc03161f
updated esp_ota_get_app_elf_sha256 to store and return
X number of bytes of the hash, but the test case still expected 64 bytes.
Updated test case to use CONFIG value for expected length.
2020-04-15 21:13:21 +08:00
KonstantinKondrashov
a78772bbc6
app_update: Fix case when elf file SHA256 should be printed by panic handler while cache is disabled
...
Closes: IDF-1342
2020-04-15 21:06:43 +08:00
KonstantinKondrashov
1490256968
efuse: Fix get_coding_scheme() when CONFIG_SECURE_FLASH_ENC_ENABLED and LOG_LEVEL is Debug
...
Closes: https://github.com/espressif/esp-idf/issues/4862
2020-04-15 20:52:50 +08:00
Sagar Bijwe
5209dff76b
wpa_supplicant: Fix compilation errors when USE_MBEDTLS is disabled.
...
This is a regression from earlier commit related to TLSV12 which used
sha functions that are currently declared static.
Solution: Follow upstream code structure and resolve the errors.
2020-04-15 15:34:35 +05:30
Liu Han
b7f163530b
fix(transport): Fix a bug of the connection whether be active or not by timeout option when the select function return a correct value.
2020-04-15 09:49:03 +00:00
Angus Gratton
a2d0fb348b
Merge branch 'feature/add_rtc_xtal_cal_retry_option_v4.0' into 'release/v4.0'
...
esp32: Add a Kconfig option - Number of attempts to repeat 32k XTAL calibration (v4.0)
See merge request espressif/esp-idf!7932
2020-04-15 16:09:59 +08:00
Jiang Jiang Jian
fe67bedee2
Merge branch 'nimble/fix_ble_hs_reset_v4.0' into 'release/v4.0'
...
NimBLE: Reset master and slave states on host reset and fix build failure (backport v4.0)
See merge request espressif/esp-idf!8218
2020-04-15 13:26:18 +08:00
Jiang Jiang Jian
85b27d3b03
Merge branch 'bugfix/psram_single_bit_error_v4.0' into 'release/v4.0'
...
psram: support psram 2T mode to fix single bit error (backport v4.0)
See merge request espressif/esp-idf!8328
2020-04-15 13:26:02 +08:00
Sagar Bijwe
64061541f0
wpa_supplicant: Fix wpa_supplicant TLS 1.2 issues
...
1) Fixed compilation issues.
2) Added tlsprf.c from upstream
3) Enabled SHA256 in supplicant compilation.
2020-04-13 16:24:26 +00:00
Jiang Jiang Jian
c4fe416f33
Merge branch 'bugfix/backport_some_wifi_bugs_0326_v4.0' into 'release/v4.0'
...
Bugfix/backport some wifi bugs 0326 (backport v4.0)
See merge request espressif/esp-idf!8309
2020-04-13 22:38:39 +08:00
chenjianqiang
a6b08cb025
psram: support psram 2T mode to fix single bit error
...
1. add enable PSRAM 2T mode function
2. abort when himem and 2T mode are enabled meanwhile
3. set SPIRAM_2T_MODE as "n" by default, enable it when needed
2020-04-13 14:52:33 +08:00
lly
3b5eb3caf5
ble_mesh: Support BLE advertising simultaneously
2020-04-10 17:36:44 +08:00
Island
967e66bdf6
Merge branch 'bugfix/ble_mesh_add_test_function_v4.0' into 'release/v4.0'
...
ble_mesh: Add ble mesh white list test function (v4.0)
See merge request espressif/esp-idf!8159
2020-04-10 17:29:07 +08:00
liu zhifu
0b4e1ecdec
esp_wifi: backport some WiFi bugs
...
1. Fix WiFi log print level
2. Optimize WiFi/BT coexist sleep
- If any data tx/rx in WiFi slice, fore wakeup next TBTT
- Increase active timeout time to coex TBTT interval to avoid sleep in WiFi slice
3. Fix esp_wifi_stop() crash
esp_wifi_stop() crashes if it's called when WiFi is not initialized.
4. Fix esp_wifi_stop() leads to memory leak
5. esp_wifi_sta_get_ap_info() returns actual values of group ciphers
2020-04-10 11:18:44 +08:00
Angus Gratton
fd58809899
Merge branch 'bugfix/esp_event_bugfixes_v4.0' into 'release/v4.0'
...
esp_event-related fixes (v4.0)
See merge request espressif/esp-idf!8072
2020-04-09 22:11:16 +08:00
Ivan Grokhotkov
ed3ea95cc2
Merge branch 'bugfix/IDFGH-2910_v4.0' into 'release/v4.0'
...
NVS: bugfix - iterator skipping version 1 blobs (v4.0)
See merge request espressif/esp-idf!8193
2020-04-09 05:45:21 +08:00
Michael (XIAO Xufeng)
2628f3ebbd
Merge branch 'bugfix/cpp_extern_v4.0' into 'release/v4.0'
...
Add extern C header guards to some files (backport v4.0)
See merge request espressif/esp-idf!8225
2020-04-07 15:39:48 +08:00
Prasad Alatkar
0fc72b58e1
NimBLE: Reset master and slave states on host reset and fix build failure (backport v4.0)
2020-04-07 10:41:35 +05:30
Shubham Kulkarni
d74995736c
esp_ota_ops.c: Fix size calculation to erase partition range for OTA image
...
Closes https://github.com/espressif/esp-idf/issues/4953
2020-04-06 13:39:51 +05:30
Ivan Grokhotkov
c8a05bae78
Merge branch 'bugfix/nvs_no_throw' into 'release/v4.0'
...
NVS: Changed all new to new (nothrow) (backport v4.0)
See merge request espressif/esp-idf!7847
2020-04-03 16:38:01 +08:00
Ivan Grokhotkov
ccc6363a21
core dump: don't allow core dumps to Flash if PSRAM is used for stacks
...
It is not possible to write to Flash when the stack is located in
PSRAM, and it is not possible to write PSRAM buffers into Flash when
malloc can not be used.
2020-04-02 23:44:47 +02:00
Ivan Grokhotkov
8ffb38265c
driver: fix gpio pin_bit_mask truncation in sdspi_host and others
...
Closes https://github.com/espressif/esp-idf/issues/4348
2020-04-02 23:38:17 +02:00
boarchuz
17bd6e8fab
Add missing extern "C" to rtc_cntl.h
...
Related: https://github.com/espressif/arduino-esp32/issues/3149
2020-04-02 23:36:14 +02:00
Ivan Grokhotkov
192c20c9f7
clk.h: add extern C guards
...
Closes https://github.com/espressif/esp-idf/issues/4215
2020-04-02 23:22:41 +02:00
Gabriel Durante
c7ac9a296d
Added Cpp compatibility for components/spi_flash/include/esp_flash_spi_init.h
...
Merges https://github.com/espressif/esp-idf/pull/4260
2020-04-02 23:22:10 +02:00
Island
50073a7e61
Merge branch 'nimble/misc_host_flow_ctrl_changes_v4.0' into 'release/v4.0'
...
NimBLE: Misc fixes in NimBLE host (backport v4.0)
See merge request espressif/esp-idf!7949
2020-04-02 19:43:52 +08:00
Jiang Jiang Jian
f69f96edab
Merge branch 'bugfix/btdm_dont_dequeue_the_command_queue_v4.0' into 'release/v4.0'
...
component/bt: fix don't dequeue the command queue after process the read_by_type_req(backport v4.0)
See merge request espressif/esp-idf!8182
2020-04-01 17:56:05 +08:00
Mahavir Jain
2ee765ffaf
Merge branch 'bugfix/secure_boot_ecdsa_config_v4.0' into 'release/v4.0'
...
secure boot: Ensure mbedTLS enables ECDSA if signatures are checked in app
See merge request espressif/esp-idf!8196
2020-04-01 16:42:47 +08:00
Jakob Hasse
3ed127709e
NVS: bugfix - iterator skipping version 1 blobs
...
Closes https://github.com/espressif/esp-idf/issues/4954
2020-04-01 15:17:14 +08:00
Angus Gratton
02c5c8d8ad
Merge branch 'backport/malloc_zero_return_null_v4.0' into 'release/v4.0'
...
backport/malloc_zero_return_null_v4.0
See merge request espressif/esp-idf!8145
2020-04-01 14:42:38 +08:00
Angus Gratton
bdfba3b88c
mbedtls: Make ECDHE-PSK config item depend on ECDHE
2020-04-01 16:43:03 +11:00
Angus Gratton
904b85e365
secure boot: Ensure mbedTLS enables ECDSA if signatures are checked in app
...
and all ECDSA to be disabled if secure boot is not enabled
Previously if ECDSA disabled in config then secure_boot_signatures.c would
fail to build (whether or not secure boot was enabled).
To avoid breaking apps that might be using the signature scheme with custom OTA
without enabling secure boot signatures in config, this change just disables
this functionality if unavailable in mbedTLS config.
Possible fix for root cause of https://github.com/espressif/esp-idf/pull/3703
Closes https://github.com/espressif/esp-idf/issues/4758
2020-04-01 16:42:41 +11:00
Mahavir Jain
2cc9d28a35
Merge branch 'fix/wifi_provisioning_uuid_v4.0' into 'release/v4.0'
...
Wifi_provisioning: Change service_uuid to non standard 128 bit UUID and add retries in test script (backport v4.0)
See merge request espressif/esp-idf!8163
2020-04-01 13:04:26 +08:00
xiewenxiang
50e83cf374
component/bt: fix don't dequeue the command queue after process the read_by_type_req
2020-03-31 16:29:07 +08:00
Prasad Alatkar
1e2ca78aac
Wifi_provisioning_ble: Change service_uuid to non standard 128 bit UUID (v4.0)
...
- Modifies UUIDs in scheme_ble, manager example and esp_prov tool to custom 128
bit UUID
2020-03-30 11:22:32 +05:30
lly
1d55af4bb2
ble_mesh: Add ble mesh white list test function
...
Using the ble mesh white list test functions, a node can choose to
only receive mesh messages from a specific node and relay the
messages for it. Messages from other nodes will be ignored.
2020-03-30 11:03:00 +08:00
baohongde
b2a3a9041d
components/coex: Fix wakeup delay with DFS
2020-03-28 20:49:15 +08:00
baohongde
286d249239
components/bt: Fix assert when create conntion cancel
2020-03-28 20:44:43 +08:00
Felipe Neves
9d5d22c458
multi_heap: ensure that malloc(0) return NULL pointer in any poisoning configuration
2020-03-27 14:30:27 -03:00
Roland Dobai
13f4656d2a
tools: Fix flashing encrypted binaries from IDF Monitor
2020-03-27 10:31:37 +01:00
Angus Gratton
363f55f618
Merge branch 'bugfix/cmake_bugfixes_v4.0' into 'release/v4.0'
...
CMake-related bugfixes (v4.0)
See merge request espressif/esp-idf!8066
2020-03-26 16:29:45 +08:00
Jiang Jiang Jian
fb14ab08c8
Merge branch 'bugfix/backport_some_wifi_bugs_0323_v4.0' into 'release/v4.0'
...
esp_wifi: Backport some wifi bugs 0323 (backport v4.0)
See merge request espressif/esp-idf!8087
2020-03-25 15:01:44 +08:00
Jiang Jiang Jian
6ce172bcae
Merge branch 'optimization/TCPv6_connect_for_v4.0' into 'release/v4.0'
...
lw-ip:optimization TCPv6 connect for v4.0
See merge request espressif/esp-idf!8021
2020-03-24 15:25:47 +08:00
xiehang
d71ac521cf
esp_wifi: backport some wifi bugs 0323
...
1,Reduce WiFi bin size
2,Add TX packets size check
3,Fix scan get rssi error
4,Add wifi stop check at WiFi deinit entry
5,coex adjust scheme when bt is connected status
6,Return fail when setting AP's channel is out of range
7,Fix the bug for setting channel when WiFi in NULL mode
2020-03-24 15:10:31 +08:00
Mahavir Jain
921e56d0c3
Merge branch 'feature/upgrade_mbedtls_to_v4.0' into 'release/v4.0'
...
mbedtls: upgrade to release v2.16.5 (v4.0)
See merge request espressif/esp-idf!7987
2020-03-24 13:46:34 +08:00
Renz Christian Bagaporo
aed56d4da9
esp_event: remove extra line from source file
2020-03-22 21:46:07 +08:00
Renz Christian Bagaporo
39e8e2003a
esp_event: test that handlers can unregister themselves
2020-03-22 21:45:58 +08:00
Renz Christian Bagaporo
b79062aeec
esp_event: iterate loop nodes safely as well
2020-03-22 21:45:50 +08:00
Xentec
66949e3b54
esp_event: fix crash when unregistering a handler instance in itself
...
When a handler instance is the last one in the list und unregisters
itself, the handler iterator will be invalidated by entering free'd
memory. Same applies for event base and id, if they become empty.
Merges https://github.com/espressif/esp-idf/pull/4139
2020-03-22 21:45:41 +08:00
Renz Bagaporo
fbd12902eb
cmake: show error message on encrypted flash targets without proper config
2020-03-22 21:09:35 +08:00
Renz Bagaporo
7bdb7ee235
ulp: fix ulp external project args
...
Closes https://github.com/espressif/esp-idf/issues/4713
2020-03-22 21:09:03 +08:00
Renz Christian Bagaporo
0f036b8749
ulp: use quotes when specifying files for embedding ulp binaries
2020-03-22 21:07:58 +08:00
Renz Christian Bagaporo
365e6ce181
partition_table: output partition table info for partition_table target
2020-03-22 21:04:03 +08:00
Jiang Jiang Jian
0e70b783ae
Merge branch 'bugfix/send_ok_when_sta_disconnect_for_v4.0' into 'release/v4.0'
...
lw-ip:bugfix for TCPv6 send ok when sta disconnect for v4.0
See merge request espressif/esp-idf!8024
2020-03-21 15:16:01 +08:00
xueyunfei
ac302329d1
optimization TCPv6 connect
2020-03-20 15:02:43 +08:00
xueyunfei
e1d78a218a
bugfix for TCPv6 send ok when sta disconnect
2020-03-19 14:06:40 +08:00
Mahavir Jain
13e3e26065
mbedtls: upgrade to release v2.16.5
...
For detailed release notes please refer to:
https://tls.mbed.org/tech-updates/releases/mbedtls-2.16.5-and-2.7.14-released
Closes: IDFGH-2638
Closes: https://github.com/espressif/esp-idf/issues/4716
2020-03-18 11:49:23 +00:00
Sagar Bijwe
a8e0b9171b
wpa_supplicant: Fix SAE test-case failure on mbedtls version udpate
...
Problem:
mbedtls_ctr_drbg_context was initialized in crypto_ec_point_mul. This
was okay in releases before 2.16.4 as entropy_len used to get set to
MBEDTLS_CTR_DRBG_ENTROPY_LEN in function mbedtls_ctr_drbg_seed. The
function is now changed to set the length to
MBEDTLS_CTR_DRBG_ENTROPY_LEN if previous length is 0 and hence the bug.
Solution:
Initialize mbedtls_ctr_drbg_context in crypto_ec_point_mul.
2020-03-18 11:49:23 +00:00
Shubham Kulkarni
402e97ea51
esp_https_ota.c: Add errno check for WiFi disconnection while performing OTA
2020-03-18 08:19:56 +00:00
Shubham Kulkarni
0bdd75a344
OTA: Add fix in case of URL redirection and a test case of URL redirection
...
Closes https://github.com/espressif/esp-idf/issues/4780
2020-03-18 08:19:56 +00:00
Shubham Kulkarni
662b39fc1e
OTA: Fixed OTA with chunked servers and added example_test with chunked server
2020-03-18 08:19:56 +00:00
Shubham Kulkarni
8785ac4c2a
Bugfix for failing OTA example
...
example_test.py is added to test advanced_https_ota_example and native ota_example.
Closes https://github.com/espressif/esp-idf/issues/4394
2020-03-18 08:19:56 +00:00
Mahavir Jain
6627ca40da
esp_http_client: fix issue where http parser was not invoking message_complete
callback
...
https://github.com/espressif/esp-idf/issues/2625
https://github.com/espressif/esp-idf/issues/4209
2020-03-18 08:19:56 +00:00
Shubham Kulkarni
465d517fbd
Merge branch 'bugfix/CMake_esp_https_ota_dependencies' into master
...
components/esp_https_ota: Changes in public requirement list for CMake and esp_ota_ops.h is included in esp_https_ota.c
bootloader_support is added in public requirements of CMake
bootloader_common.h is included in esp_https_ota.h
Closes https://github.com/espressif/esp-idf/issues/4198
Closes IDFGH-2066
2020-03-18 08:19:56 +00:00
Hrudaynath Dhabe
3bdebe2383
esp_https_ota: Added error checking functionalities.
...
Current implimentation of esp_http_ota does not perform any error-checking in the data writing phase calls `esp_ota_get_next_update_partition()` irrespetive of the received state of the image. A few additional error checking mechanism have now been added inside the esp_https_ota which returns the control in case an invalid header is received and a wrapper to the function `esp_http_client_is_complete_data_received()` of `esp_http_client` has been added.
2020-03-18 08:19:56 +00:00
Hrudaynath Dhabe
be08f6f2bb
esp_http_client: Add support to check the binary length of the recieved stream and compare it with the size mentioned in the header.
...
While downloading OTA firmware, if their is a Origin Respnse Timeout or the binary is only partially downloaded, OTA failure is observed. Checking binary size can also be helpful for simple http client applications.
Closes https://github.com/espressif/esp-idf/issues/3004
2020-03-18 08:19:56 +00:00
Island
233349c235
Merge branch 'bugfix/ble_mesh_nimble_adapt_deinit_v4.0' into 'release/v4.0'
...
ble_mesh: Fix ble mesh nimble host deinit (v4.0)
See merge request espressif/esp-idf!8005
2020-03-18 12:31:54 +08:00
Jiang Jiang Jian
982e7b5538
Merge branch 'bugfix/sntp_init_can_run_before_net_connection_v4.0' into 'release/v4.0'
...
lw_ip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it (v4.0)
See merge request espressif/esp-idf!7757
2020-03-18 12:06:42 +08:00
lly
28a9cb5be1
ble_mesh: Fix ble mesh nimble host deinit
2020-03-17 16:22:26 +08:00
Jiang Jiang Jian
a8364af83d
Merge branch 'bugfix/ble_mesh_miscellaneous_fix_v4.0' into 'release/v4.0'
...
Bugfix/ble mesh miscellaneous fix (v4.0)
See merge request espressif/esp-idf!7970
2020-03-17 15:35:12 +08:00
Jiang Jiang Jian
75f6bc2de1
Merge branch 'bugfix/compiler_err_when_performance_optimization_enabled_v4.0' into 'release/v4.0'
...
Bugfix/compiler err when performance optimization enabled v4.0
See merge request espressif/esp-idf!7978
2020-03-17 13:53:54 +08:00
Jiang Jiang Jian
9866b4f17c
Merge branch 'bugfix/hfp_github_issues_v4.0' into 'release/v4.0'
...
Bugfix for HFP and some Github issue. v4.0
See merge request espressif/esp-idf!7976
2020-03-17 13:50:19 +08:00
Jiang Jiang Jian
8df1d1ffab
Merge branch 'bugfix/fix_beacon_frame_vendor_ie_issue_v4.0' into 'release/v4.0'
...
bugfix: Place the Vendor Specific element at the end according to the protocol (backport v4.0)
See merge request espressif/esp-idf!7777
2020-03-17 13:44:23 +08:00
Prasad Alatkar
5f7436006f
NimBLE: Add Host based privacy (RPA) feature support (v4.0)
...
- This feature removes dependency on controller to use privacy (RPA)
2020-03-16 07:33:07 +00:00
Prasad Alatkar
6ee1947822
NimBLE: Fix check for static random address & add MSYS_1 in menuconfig (v4.0)
...
Closes BT-290 & BT-440
2020-03-16 07:33:07 +00:00
Hrishikesh Dhayagude
3aaf6a06dd
NimBLE: Use dynamic buffers instead of static memory (v4.0)
...
The NimBLE host buffers that consume a significant amount of memory are
now allocated dynamically.
The advantage is that, the memory can be reclaimed in cases where BLE
is turned off and not required for the current boot cycle
2020-03-16 07:33:07 +00:00
Prasad Alatkar
3ee6dfa4d6
NimBLE: Misc changes in host flow control, ble_gap_unpair, ble_hs_hci_rx_evt & example (v4.0)
...
- Add menuconfig option for NimBLE host flow control
- Include changes in `blecent` example from upstream PR!702
- add ble_hs_lock in ble_gap_unpair Upstream PR!584
- ble_hs_hci_rx_evt, upstream PR!738
Closes https://github.com/espressif/esp-idf/issues/4243
2020-03-16 07:33:07 +00:00
weitianhua
b6415d9a91
Remove (x2) variable in BCM_STRNCPY_S and BCM_STRCPY_S when performance optimization enabled
2020-03-14 14:45:57 +08:00
weitianhua
ce55956a8f
Fix mem_start uninitialized error when compiler optimization performance enabled
2020-03-14 14:45:04 +08:00
weitianhua
7c2f1287ec
Bugfix for HFP and some Github issue.
...
1. Bugfix for AG audio crash (change the return position)
2. Fix the error macro name and error return in hfp_hf demo
3. Fix the annotation error using UTF-8 ' (from Github)
4. Change or remove the log in SCO related code region.
5. Correct error of introduction of a function.
2020-03-14 14:19:54 +08:00
lly
eee8bd4612
ble_mesh: Move dev_role to the end of model_pub
2020-03-13 19:27:55 +08:00
lly
4dde86e45d
ble_mesh: Use the right netkey during iv update
2020-03-13 19:27:54 +08:00
lly
e6b4eb60ef
ble_mesh: Use the right net_idx & app_idx for publish
2020-03-13 19:27:54 +08:00
lly
c5b2f693b8
ble_mesh: Check buf->ref before unref the buffer
2020-03-13 19:27:54 +08:00
lly
7cf29e0f3f
ble_mesh: Fix mesh memory use-after-free issue
2020-03-13 19:27:54 +08:00
lly
cb31c71877
ble_mesh: Add ble mesh deinit in btc task
2020-03-13 19:27:54 +08:00
lly
50040e8e99
ble_mesh: Free beacon timer when deinit mesh
2020-03-13 19:27:53 +08:00
lly
a364541193
ble_mesh: Use lock for mesh timer operations
2020-03-13 19:27:53 +08:00
Mahavir Jain
fdbdf9a0ec
Merge branch 'bugfix/unicore_config_prevent_ipc_code_v4.0' into 'release/v4.0'
...
ipc: prevent code getting pulled in for unicore configuration (v4.0)
See merge request espressif/esp-idf!7943
2020-03-12 13:31:44 +08:00
KonstantinKondrashov
1c12e67c8a
lwip: Add to sys_arch_protect() a check that the mutex is created before use if not then creates it
...
Closes: https://github.com/espressif/esp-idf/issues/944
Closes: https://github.com/espressif/esp-idf/issues/3931
Closes: WIFI-1019
2020-03-11 19:18:09 +08:00
xueyunfei
cf77068675
fix bug for after udp close select_waiting assert for v4.0
2020-03-11 10:04:32 +00:00
Michael (XIAO Xufeng)
68b4177f70
Merge branch 'bugfix/ledc_driver_enums_v4.0' into 'release/v4.0'
...
driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum (v4.0)
See merge request espressif/esp-idf!7910
2020-03-11 16:39:11 +08:00
Mahavir Jain
0cc802e6ab
ipc: prevent code getting pulled in for unicore configuration
2020-03-11 14:04:45 +05:30
KonstantinKondrashov
cb10ba5785
esp32: Add a Kconfig option- Number of attempts to repeat 32k XTAL calibration
...
Closes: IDF-1479
2020-03-10 19:39:56 +08:00
Michael (XIAO Xufeng)
6023d60966
Merge branch 'bugfix/put_spihost_handle_in_sram_v4.0' into 'release/v4.0'
...
spi: always put spihost handle in SRAM (backport 4.0)
See merge request espressif/esp-idf!7902
2020-03-10 15:32:24 +08:00
Jiang Jiang Jian
2161d09079
Merge branch 'Bugfix/netconn_marked_close_crash_for_v4.0' into 'release/v4.0'
...
lw-ip:fix bug for netconn marked close crash for v4.0
See merge request espressif/esp-idf!7897
2020-03-09 16:36:45 +08:00
Michael (XIAO Xufeng)
1b08b7c5fb
Merge branch 'bugfix/spiflash_read_psram_v4.0' into 'release/v4.0'
...
spi_flash: Fix over-allocation and OOM crash when reading from SPI flash to PSRAM buffers (v4.0)
See merge request espressif/esp-idf!7878
2020-03-09 11:10:52 +08:00
xueyunfei
8ea128ded5
fix bug for netconn marked close crash for v4.0
2020-03-09 02:49:57 +00:00
Angus Gratton
c5a5b34ba4
driver: Avoid possible accidental mismatch between ledc_clk_src_t & ledc_clk_cfg_t enum
...
ledc.h includes two similar enums, ledc_clk_src_t & ledc_clk_cfg_t.
The two enums do different things but there are two similar names: LEDC_REF_TICK / LEDC_USE_REF_TICK
and LEDC_APB_CLK / LEDC_USE_APB_CLK.
Because C will accept any enum or integer value for an enum argument, there's no easy way to check
the correct enum is passed without using static analysis.
To avoid accidental errors, make the numeric values for the two similarly named enums the same.,
Noticed when looking into https://github.com/espressif/esp-idf/issues/4476
2020-03-09 11:32:18 +11:00