Don't call checkInclusionMode() if the feature is not turned on

Signed-off-by: Tomas Hozza <thozza@gmail.com>
This commit is contained in:
Tomas Hozza
2015-05-23 22:20:03 +02:00
parent 2bfe5cc650
commit 0c9b2b738d
+2
View File
@@ -98,7 +98,9 @@ boolean MyGateway::sendRoute(MyMessage &message) {
}
boolean MyGateway::process() {
#ifdef MY_INCLUSION_MODE_FEATURE
checkInclusionMode();
#endif
bool newMessage = false;
if (transport.available()) {
MyMessage &gmsg = transport.receive();