Now LinkWireless methods don't do anything when the library is disabled

This commit is contained in:
Rodrigo Alfonso
2023-02-05 23:09:03 -03:00
parent 79e603766e
commit 23f2dde8e7

View File

@@ -88,6 +88,8 @@
#define LINK_WIRELESS_COMMAND_DISCONNECT 0x30
#define LINK_WIRELESS_RESET_IF_NEEDED \
if (!isEnabled) \
return false; \
if (state == NEEDS_RESET) \
reset();