Update TXPowerBasedOnRssi()

This commit is contained in:
Theo Arends 2024-03-29 14:30:31 +01:00
parent 4b44d2fa32
commit 7774ce5ad8
3 changed files with 10 additions and 9 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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;