From 7774ce5ad83513a44452088afdb5ab27114f2add Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:30:31 +0100 Subject: [PATCH] Update TXPowerBasedOnRssi() --- CHANGELOG.md | 3 +-- RELEASENOTES.md | 12 ++++++------ tasmota/tasmota_support/support_wifi.ino | 4 +++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01567f9f3..854068d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file. ## [13.4.0.3] ### Added - Zigbee support for attributes of type `uint48` used by energy monitoring (#20992) -- Support for EU863-870 LoRaWanBridge +- Support for single channel EU863-870 LoRaWanBridge (#17790) - Support Azure iothub direct method (#21013) - Added GPIO for SPI for Universal Touch Screen (#21025) - Berry added `close()` to class `serial` (#21042) @@ -31,7 +31,6 @@ All notable changes to this project will be documented in this file. ### Removed - Berry `print "a"` syntax no longer supported (#21048) - ## [13.4.0.2] 20240318 ### Added - Berry `path.rename()` (#20840) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 31a434a19..d07480607 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -118,17 +118,17 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm ## Changelog v13.4.0.3 ### Added -- Support for LoRa and EU863-870 LoRaWanBridge -- Support for AMS5915/AMS6915 temperature and pressure sensors [#20814](https://github.com/arendst/Tasmota/issues/20814) -- Support Azure iothub direct method [#21013](https://github.com/arendst/Tasmota/issues/21013) - Support for calculated heat index if temperature and humidity is available with ``#define USE_HEAT_INDEX`` [#4771](https://github.com/arendst/Tasmota/issues/4771) -- Support IR data larger than 64 bits [#20831](https://github.com/arendst/Tasmota/issues/20831) +- Support for LoRa and single channel EU863-870 LoRaWanBridge [#17790](https://github.com/arendst/Tasmota/issues/17790) +- Support for AMS5915/AMS6915 temperature and pressure sensors [#20814](https://github.com/arendst/Tasmota/issues/20814) - Support for LWT messages in TasMesh [#20392](https://github.com/arendst/Tasmota/issues/20392) +- Support IR data larger than 64 bits [#20831](https://github.com/arendst/Tasmota/issues/20831) - Support for MCP23S08 [#20971](https://github.com/arendst/Tasmota/issues/20971) - Support for ESP32-S3 120Mhz [#20973](https://github.com/arendst/Tasmota/issues/20973) -- QMC5883l check for overflow and scale reading [#20643](https://github.com/arendst/Tasmota/issues/20643) -- Support GPIO configuration for SPI for Universal Touch Screen [#21025](https://github.com/arendst/Tasmota/issues/21025) +- Support Azure iothub direct method [#21013](https://github.com/arendst/Tasmota/issues/21013) +- Support SPI GPIO configuration for Universal Touch Screen [#21025](https://github.com/arendst/Tasmota/issues/21025) - Zigbee support for attributes of type `uint48` used by energy monitoring [#20992](https://github.com/arendst/Tasmota/issues/20992) +- QMC5883l check for overflow and scale reading [#20643](https://github.com/arendst/Tasmota/issues/20643) - Berry explicit error log when memory allocation fails [#20807](https://github.com/arendst/Tasmota/issues/20807) - Berry `path.rename()` [#20840](https://github.com/arendst/Tasmota/issues/20840) - Berry `string.startswith`, `string.endswith` and `%q` format [#20909](https://github.com/arendst/Tasmota/issues/20909) diff --git a/tasmota/tasmota_support/support_wifi.ino b/tasmota/tasmota_support/support_wifi.ino index fdd9db556..881ac81f2 100644 --- a/tasmota/tasmota_support/support_wifi.ino +++ b/tasmota/tasmota_support/support_wifi.ino @@ -1018,7 +1018,9 @@ void WiFiSetTXpowerBasedOnRssi(void) { threshold = WIFI_SENSITIVITY_54g; if (max_tx_pwr > MAX_TX_PWR_DBM_54g) max_tx_pwr = MAX_TX_PWR_DBM_54g; break; - case 3: // 11bgn (WIFI_PHY_MODE_11N) + case 3: // 11bgn (WIFI_PHY_MODE_HT20 = WIFI_PHY_MODE_11N) + case 4: // 11bgn (WIFI_PHY_MODE_HT40) + case 5: // 11ax (WIFI_PHY_MODE_HE20) threshold = WIFI_SENSITIVITY_n; if (max_tx_pwr > MAX_TX_PWR_DBM_n) max_tx_pwr = MAX_TX_PWR_DBM_n; break;