From 0025a1485b92becdcc27e3862d630d79caa03ed8 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 4 Aug 2021 14:30:13 +0200 Subject: [PATCH] Add support for (Yeelight) Mi Desk Pro using binary tasmota32solo1.bin and template named "Mi Desk Pro" --- CHANGELOG.md | 1 + RELEASENOTES.md | 1 + tasmota/support_rotary.ino | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f7620993..b1cb28f34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### Added - Inital support for Wi-Fi extender (#12784) - Neopool commands ``NPPHRes``, ``NPCLRes`` and ``NPIonRes`` (#12813) +- Support for (Yeelight) Mi Desk Pro using binary tasmota32solo1.bin and template named "Mi Desk Pro" ### Changed - Make Sonoff L1 MusicSync persistent (#12008) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index f70f8b1ba..3aa603437 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -105,6 +105,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo - Command ``SetSensor1..127 0|1`` to globally disable individual sensor driver - Neopool commands ``NPPHRes``, ``NPCLRes`` and ``NPIonRes`` [#12813](https://github.com/arendst/Tasmota/issues/12813) - Support for second DNS server +- Support for (Yeelight) Mi Desk Pro using binary tasmota32solo1.bin and template named "Mi Desk Pro" - Initial support for Tasmota Mesh (TasMesh) providing node/broker communication using ESP-NOW [#11939](https://github.com/arendst/Tasmota/issues/11939) - Berry ESP32 partition manager [#12465](https://github.com/arendst/Tasmota/issues/12465) - Berry ESP32 support for I2S audio mp3 playback diff --git a/tasmota/support_rotary.ino b/tasmota/support_rotary.ino index 951291357..1860fdf48 100644 --- a/tasmota/support_rotary.ino +++ b/tasmota/support_rotary.ino @@ -150,6 +150,11 @@ void RotaryInit(void) { Rotary.model = 0; } #endif // ESP8266 +#ifdef ESP32 + if (ValidTemplate("Mi Desk Pro")) { + Rotary.model = 0; + } +#endif // ESP32 RotaryInitMaxSteps();