From 82317999ba1e34626218e4463e93658bb7b9749c Mon Sep 17 00:00:00 2001 From: Tennessee Carmel-Veilleux Date: Fri, 16 Sep 2022 11:24:11 -0400 Subject: [PATCH] Update some comments --- examples/platform/linux/AppMain.cpp | 3 ++- src/python_testing/TC_TestEventTrigger.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/platform/linux/AppMain.cpp b/examples/platform/linux/AppMain.cpp index c19db28b6b4467..876e0da8bc3751 100644 --- a/examples/platform/linux/AppMain.cpp +++ b/examples/platform/linux/AppMain.cpp @@ -146,7 +146,8 @@ static bool EnsureWiFiIsStarted() class SampleTestEventTriggerDelegate : public TestEventTriggerDelegate { public: - static constexpr uint64_t kSampleTestEventTriggerAlwaysSuccess = static_cast(0xFFFF'FFFF'FFFF'FFFEull); + /// NOTE: If you copy this, please use the reserved range FFFF_FFFF__xxxx for your trigger codes. + static constexpr uint64_t kSampleTestEventTriggerAlwaysSuccess = static_cast(0xFFFF'FFFF'FFF1'0000ull); SampleTestEventTriggerDelegate() { memset(&mEnableKey[0], 0, sizeof(mEnableKey)); } diff --git a/src/python_testing/TC_TestEventTrigger.py b/src/python_testing/TC_TestEventTrigger.py index d5604e6f7b7a47..8834417e41d847 100644 --- a/src/python_testing/TC_TestEventTrigger.py +++ b/src/python_testing/TC_TestEventTrigger.py @@ -31,7 +31,7 @@ kAllZerosKey = bytes(b"\x00" * 16) # Assumes `SampleTestEventTriggerDelegate` as it exists in Linux AppMain.cpp -kValidEventTrigger = 0xFFFF_FFFF_FFFF_FFFE +kValidEventTrigger = 0xFFFF_FFFF_FFF1_0000 kInvalidEventTrigger = 0 # Per TC-DGEN-2.3