LinkUniversal: On deactivate, only call deactivate() on cable mode if it's active

This commit is contained in:
Rodrigo Alfonso 2025-01-16 01:56:57 -03:00
parent fd5f298649
commit 411e98f7bd

View File

@ -183,7 +183,8 @@ class LinkUniversal {
*/
bool deactivate(bool turnOffWireless = true) {
isEnabled = false;
linkCable.deactivate();
if (linkCable.isActive())
linkCable.deactivate();
bool success = linkWireless.deactivate(turnOffWireless);
resetState();
return success;