[config] define uptime feature for MTDs (#11192)

MTDs built out of the OpenThread stack fail 1.4 network diagnostics
test cases that track connection time and role time in MLE counter
TLVs. We can workaround manually defining UPTIME for MTDs, but it's
better to make it the default behavior.
This commit is contained in:
Suvesh Pratapa
2025-01-28 12:01:05 -08:00
committed by GitHub
parent ee2049fb48
commit a8632ace1b
+1 -1
View File
@@ -119,7 +119,7 @@
* Define to 1 to enable tracking the uptime of OpenThread instance.
*/
#ifndef OPENTHREAD_CONFIG_UPTIME_ENABLE
#define OPENTHREAD_CONFIG_UPTIME_ENABLE OPENTHREAD_FTD
#define OPENTHREAD_CONFIG_UPTIME_ENABLE (OPENTHREAD_FTD || OPENTHREAD_MTD)
#endif
/**