Fix Shelly EM polarity (#16486)

This commit is contained in:
Theo Arends 2022-10-12 15:46:33 +02:00
parent 5cfbbd4302
commit 6202211c31
3 changed files with 7 additions and 4 deletions

View File

@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
### Fixed ### Fixed
### Removed ### Removed
- Display of energy values in GUI use columns when define ``USE_ENERGY_COLUMN_GUI`` is enabled (default)
## [12.1.1.4] 20221012 ## [12.1.1.4] 20221012
### Added ### Added
@ -25,6 +26,7 @@ All notable changes to this project will be documented in this file.
### Changed ### Changed
- ESP32 LVGL library from v8.3.0 to v8.3.2 - ESP32 LVGL library from v8.3.0 to v8.3.2
- Increase serial console fixed input buffer size from 520 to 800 - Increase serial console fixed input buffer size from 520 to 800
- Swap Shelly EM internal channels A and B to match P1 and P2 (#16486)
## [12.1.1.3] 20221003 ## [12.1.1.3] 20221003
### Added ### Added

View File

@ -149,6 +149,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo
- Button debouncing V3 by adopting switch debounce code [#16339](https://github.com/arendst/Tasmota/issues/16339) - Button debouncing V3 by adopting switch debounce code [#16339](https://github.com/arendst/Tasmota/issues/16339)
- Thermostat max allowed temperature from 100 to 200C [#16363](https://github.com/arendst/Tasmota/issues/16363) - Thermostat max allowed temperature from 100 to 200C [#16363](https://github.com/arendst/Tasmota/issues/16363)
- Using command ``SerialBuffer`` raise max allowed buffer size to 2048 characters [#16374](https://github.com/arendst/Tasmota/issues/16374) - Using command ``SerialBuffer`` raise max allowed buffer size to 2048 characters [#16374](https://github.com/arendst/Tasmota/issues/16374)
- Swap Shelly EM internal channels A and B to match P1 and P2 [#16486](https://github.com/arendst/Tasmota/issues/16486)
- Zigbee report unprocessed attributes - Zigbee report unprocessed attributes
- ESP32 Increase number of button GPIOs from 8 to 28 [#16518](https://github.com/arendst/Tasmota/issues/16518) - ESP32 Increase number of button GPIOs from 8 to 28 [#16518](https://github.com/arendst/Tasmota/issues/16518)
- ESP32 Platformio one Platform for all Tasmota frameworks Core32 2.0.5 [#16644](https://github.com/arendst/Tasmota/issues/16644) - ESP32 Platformio one Platform for all Tasmota frameworks Core32 2.0.5 [#16644](https://github.com/arendst/Tasmota/issues/16644)

View File

@ -225,13 +225,13 @@ const uint16_t Ade7953RegistersAis1Bis2[] {
// Active power // Active power
const uint16_t APSIGN[] { const uint16_t APSIGN[] {
0x800, //Bit 10 (21 bits) in ACCMODE Register for channel A (0 - positive, 1 - negative) 0x0400, //Bit 10 (21 bits) in ACCMODE Register for channel A (0 - positive, 1 - negative)
0x400 //Bit 11 (21 bits) in ACCMODE Register for channel B (0 - positive, 1 - negative) 0x0800 //Bit 11 (21 bits) in ACCMODE Register for channel B (0 - positive, 1 - negative)
}; };
// Reactive power // Reactive power
const uint16_t VARSIGN[] { const uint16_t VARSIGN[] {
0x200, //Bit 12 (21 bits) in ACCMODE Register for channel A (0 - positive, 1 - negative) 0x1000, //Bit 12 (21 bits) in ACCMODE Register for channel A (0 - positive, 1 - negative)
0x100 //Bit 13 (21 bits) in ACCMODE Register for channel B (0 - positive, 1 - negative) 0x2000 //Bit 13 (21 bits) in ACCMODE Register for channel B (0 - positive, 1 - negative)
}; };
struct Ade7953 { struct Ade7953 {