Merge pull request #9835 from orenc17/no_greentea

Add define to skip greentea sync
pull/9899/head
Cruz Monrreal 2019-02-28 18:24:09 -06:00 committed by GitHub
commit 024cae5442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -94,8 +94,10 @@ void _GREENTEA_SETUP_COMMON(const int timeout, const char *host_test_name, char
* This function is blocking.
*/
extern "C" void GREENTEA_SETUP(const int timeout, const char *host_test_name) {
#if ! defined(NO_GREENTEA)
char _value[GREENTEA_UUID_LENGTH] = {0};
_GREENTEA_SETUP_COMMON(timeout, host_test_name, _value, GREENTEA_UUID_LENGTH);
#endif
}
/** \brief Handshake with host and send setup data (timeout and host test name). Allows you to preserve sync UUID.