Add test for result usage

This commit is contained in:
Theo Arends 2018-12-30 14:56:50 +01:00
parent 0a22261e36
commit 850d240d2e

View File

@ -311,7 +311,9 @@ boolean XsnsCall(byte Function)
} }
#endif // PROFILE_XSNS_SENSOR_EVERY_SECOND #endif // PROFILE_XSNS_SENSOR_EVERY_SECOND
if (result) break; if (result && (FUNC_COMMAND == Function)) {
break;
}
#ifdef USE_DEBUG_DRIVER #ifdef USE_DEBUG_DRIVER
} }
#endif #endif