Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compile error with core 3.0.0 for Range Extender driver xdrv_58_range_extender.ino #1

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
- [ ] The pull request is done against the latest development branch
- [ ] Only relevant files were touched
- [ ] Only one feature/fix was added per PR and the code change compiles without warnings
- [ ] The code change is tested and works with Tasmota core ESP8266 V.2.7.7
- [ ] The code change is tested and works with Tasmota core ESP32 V.3.0.5
- [ ] The code change is tested and works with Tasmota core ESP8266 V.2.7.8
- [ ] The code change is tested and works with Tasmota core ESP32 V.3.1.0.240926
- [ ] I accept the [CLA](https://github.com/arendst/Tasmota/blob/development/CONTRIBUTING.md#contributor-license-agreement-cla).

_NOTE: The code change must pass CI tests. **Your PR cannot be merged unless tests pass**_
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.gcda

## Project files ######
managed_components
.platformio
.pio
.clang_complete
Expand Down
31 changes: 26 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,31 @@ All notable changes to this project will be documented in this file.

## [Unreleased] - Development

## [14.2.0.4]
## [14.2.0.6]
### Added

### Breaking Changed

### Changed
- ESP32 platform update from 2024.09.10 to 2024.09.30 and Framework (Arduino Core) from v3.0.5 to v3.1.0.240926 (#22203)

### Fixed

### Removed

## [14.2.0.5] 20240926
### Added
- ESP8266 support for I2C CLK on GPIO16 (#22199)
- ESP8266 support for one-wire M1601 temperature sensor on DS18x20 GPIO (#21376)
- Support for BL0906 up to 6 channel energy monitor as used in Athom EM2/EM6 (#22167)

### Changed
- ESP8266 platform update from 2024.06.00 to 2024.09.00 and Framework (Arduino Core) from v2.7.7 to v2.7.8 (#22199)

### Fixed
- HASPmota broken `changed` event (#22194)

## [14.2.0.4] 20240924
### Added
- HX711 optional calibration precision option on command ``Sensor34 2 <weight in gram> <precision>`` where `<precision>` is 1 to 20 (#13983)
- Matter support for Zigbee Occupancy and Light 0/1/2 (OnOff / Dimmer / White Color Temperature) (#22110)
Expand All @@ -15,8 +39,6 @@ All notable changes to this project will be documented in this file.
- Berry improve `int64` constructor (#22172)
- MQTT warning if trying to connect without TLS on a port that normally uses TLS (#22175)

### Breaking Changed

### Changed
- Refactored I2C drivers HTU21, BH1750, SHT3x, iAQ and HYT
- Add command entered to command error and command unknown message
Expand All @@ -35,8 +57,7 @@ All notable changes to this project will be documented in this file.
- Autoconf prevent 'init.bat' from stopping on empty lines (#22158)
- Compilation exception when metrics not found (#22170)
- ESP8266 Exception 3 on tasmota-minimal caused by unaligned PROGMEM (#22169)

### Removed
- LVGL compilation of lv_menu (#22188)

## [14.2.0.3] 20240908
### Added
Expand Down
20 changes: 13 additions & 7 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ While fallback or downgrading is common practice it was never supported due to S

## Supported Core versions

This release will be supported from ESP8266/Arduino library Core version **2.7.7** due to reported security and stability issues on previous Core version. This will also support gzipped binaries.
This release will be supported from ESP8266/Arduino library Core version **2.7.8** due to reported security and stability issues on previous Core version. This will also support gzipped binaries.

This release will be supported from ESP32/Arduino library Core version **3.0.4**.
This release will be supported from ESP32/Arduino library Core version **v3.1.0.240926**.

Support of ESP8266 Core versions before 2.7.7 and ESP32 Core versions before 3.0.4 have been removed.
Support of ESP8266 Core versions before 2.7.8 and ESP32 Core versions before v3.1.0.240926 have been removed.

### Known issues with v14.1.0

Expand All @@ -60,7 +60,7 @@ Easy initial installation of Tasmota can be performed using the [Tasmota WebInst
## Provided Binary Downloads

### ESP8266 or ESP8285 based
The following binary downloads have been compiled with ESP8266/Arduino library core version **2.7.7**.
The following binary downloads have been compiled with ESP8266/Arduino library core version **2.7.8**.

- **tasmota.bin** = The Tasmota version with most drivers for 1M+ flash. **RECOMMENDED RELEASE BINARY**
- **tasmota-4M.bin** = The Tasmota version with most drivers and filesystem for 4M+ flash.
Expand All @@ -85,7 +85,7 @@ Historical binaries can be downloaded from
The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmota.com/tasmota/release/tasmota.bin.gz``

### ESP32, ESP32-C2, ESP32-C3, ESP32-C6, ESP32-S2 and ESP32-S3 based
The following binary downloads have been compiled with ESP32/Arduino library core version **3.0.4**.
The following binary downloads have been compiled with ESP32/Arduino library core version **v3.1.0.240926**.

- **tasmota32.bin** = The Tasmota version with most drivers including additional sensors and KNX for 4M+ flash. **RECOMMENDED RELEASE BINARY**
- **tasmota32solo1.bin** = The Tasmota version with most drivers including additional sensors and KNX for single core ESP32 and 4M+ flash.
Expand Down Expand Up @@ -119,12 +119,15 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm

[Complete list](BUILDS.md) of available feature and sensors.

## Changelog v14.2.0.4
## Changelog v14.2.0.6
### Added
- Command ``SetOption69 1`` to enable Serial Bridge inverted Receive [#22000](https://github.com/arendst/Tasmota/issues/22000)
- HX711 optional calibration precision option on command ``Sensor34 2 <weight in gram> <precision>`` where `<precision>` is 1 to 20 [#13983](https://github.com/arendst/Tasmota/issues/13983)
- ESP8266 support for one-wire M1601 temperature sensor on DS18x20 GPIO [#21376](https://github.com/arendst/Tasmota/issues/21376)
- ESP8266 support for I2C CLK on GPIO16 [#22199](https://github.com/arendst/Tasmota/issues/22199)
- Support for I2C M5Unit (Mini)Scales using HX711 driver
- Support for RX8010 RTC as used in IOTTIMER [#21376](https://github.com/arendst/Tasmota/issues/21376)
- Support for BL0906 up to 6 channel energy monitor as used in Athom EM2/EM6 [#22167](https://github.com/arendst/Tasmota/issues/22167)
- Energy command ``PowerSet 60,230`` to calibrate both Current and Power with known resistive load of 60W at 230V using calibrated Voltage
- Energy command ``CurrentSet 60,230`` to calibrate both Power and Current with known resistive load of 60W at 230V using calibrated Voltage
- MQTT warning if trying to connect without TLS on a port that normally uses TLS [#22175](https://github.com/arendst/Tasmota/issues/22175)
Expand All @@ -144,7 +147,8 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- Berry make `energy` modules changes from #21887 backwards compatible [#22046](https://github.com/arendst/Tasmota/issues/22046)

### Changed
- ESP32 platform update from 2024.08.10 to 2024.09.10 and Framework (Arduino Core) from v3.0.4 to v3.0.5 [#22163](https://github.com/arendst/Tasmota/issues/22163)
- ESP8266 platform update from 2024.06.00 to 2024.09.00 and Framework (Arduino Core) from v2.7.7 to v2.7.8 [#22199](https://github.com/arendst/Tasmota/issues/22199)
- ESP32 platform update from 2024.08.10 to 2024.09.30 and Framework (Arduino Core) from v3.0.4 to v3.1.0.240926 (#22203)[#22203](https://github.com/arendst/Tasmota/issues/22203)
- ESP32 LVGL library from v9.1.0 to v9.2.0 [#22031](https://github.com/arendst/Tasmota/issues/22031)
- GPIOViewer from v1.5.5 to v1.5.6
- Add command entered to command error and command unknown message
Expand Down Expand Up @@ -173,6 +177,8 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- Berry energy missing attributes [#22116](https://github.com/arendst/Tasmota/issues/22116)
- Berry I2C to prepare M5Stack I2C STM32 based devices [#22143](https://github.com/arendst/Tasmota/issues/22143)
- LVGL Added OpenHASP icons to font `montserrat-28` [#22048](https://github.com/arendst/Tasmota/issues/22048)
- LVGL compilation of lv_menu [#22188](https://github.com/arendst/Tasmota/issues/22188)
- HASPmota broken `changed` event [#22194](https://github.com/arendst/Tasmota/issues/22194)
- Matter fixed UI bug when no endpoints configured [#22008](https://github.com/arendst/Tasmota/issues/22008)
- Matter fix when Rules are disabled [#22016](https://github.com/arendst/Tasmota/issues/22016)
- Matter fail to report Shutter status if no shutter is configured in Tasmota [#22049](https://github.com/arendst/Tasmota/issues/22049)
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32-fix.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"openocd_target": "esp32.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32 >= 4M Flash, PSRAM with fix, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"openocd_target": "esp32.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32 >= 4M Flash PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32_solo1.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"openocd_target": "esp32-solo-1.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-solo1 >= 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32c2.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"openocd_target": "esp32c2.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-C2 = 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32c2_2M.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"openocd_target": "esp32c2.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-C2 = 2M Flash, Tasmota 1245kB Code/OTA, 64k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32c3.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"openocd_target": "esp32c3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-C3 >= 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32c3ser.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"openocd_target": "esp32c3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-C3 >= 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32c6.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"openocd_target": "esp32c6.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-C6 >= 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32c6ser.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"openocd_target": "esp32c6.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-C6 >= 4M Flash, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s2.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"openocd_target": "esp32s2.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S2 >= 4M Flash PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s2cdc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"openocd_target": "esp32s2.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S2 >= 4M Flash PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3-opi_opi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M OPI Flash + PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3-opi_opi_120.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M OPI Flash + PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3-qio_opi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M Flash OPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3-qio_opi_120.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M QIO Flash + OPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3-qio_qspi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M Flash QSPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3-qio_qspi_120.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M QIO Flash + QSPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3ser-opi_opi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M OPI Flash + PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3ser-opi_opi_120.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M OPI Flash + PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3ser-qio_opi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M Flash OPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3ser-qio_opi_120.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M QIO Flash + OPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
3 changes: 2 additions & 1 deletion boards/esp32s3ser-qio_qspi.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino"
"arduino",
"espidf"
],
"name": "Espressif Generic ESP32-S3 >= 4M Flash QSPI PSRAM, Tasmota 2880k Code/OTA, 320k FS",
"upload": {
Expand Down
2 changes: 1 addition & 1 deletion lib/libesp32/berry/src/be_byteslib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ static int m_item(bvm *vm)
{
int argc = be_top(vm);
buf_impl attr = bytes_check_data(vm, 0); /* we reserve 4 bytes anyways */
check_ptr_modifiable(vm, &attr);
check_ptr(vm, &attr);
if (argc >=2 && be_isint(vm, 2)) { /* single byte */
int index = be_toint(vm,2);
if (index < 0) {
Expand Down
6 changes: 3 additions & 3 deletions lib/libesp32/berry/src/be_code.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static int exp2const(bfuncinfo *finfo, bexpdesc *e)
{
int idx = findconst(finfo, e); /* does the constant already exist? */
if (idx == -1) { /* if not add it */
bvalue k = {};
bvalue k = {0};
switch (e->type) {
case ETINT:
k.type = BE_INT;
Expand Down Expand Up @@ -882,7 +882,7 @@ void be_code_index(bfuncinfo *finfo, bexpdesc *c, bexpdesc *k)
void be_code_class(bfuncinfo *finfo, bexpdesc *dst, bclass *c)
{
int src;
bvalue var = {};
bvalue var = {0};
var_setclass(&var, c); /* new var of CLASS type */
src = newconst(finfo, &var); /* allocate a new constant and return kreg */
if (dst->type == ETLOCAL) { /* if target is a local variable, just assign */
Expand Down Expand Up @@ -965,7 +965,7 @@ void be_code_raise(bfuncinfo *finfo, bexpdesc *e1, bexpdesc *e2)

void be_code_implicit_class(bfuncinfo *finfo, bexpdesc *e, bclass *c)
{
bvalue k = {};
bvalue k = {0};
k.type = BE_CLASS;
k.v.p = c;
int idx = newconst(finfo, &k); /* create new constant */
Expand Down
Loading