From aafec0f9eee40a405cf74f324b41d6094924abae Mon Sep 17 00:00:00 2001 From: regehr Date: Thu, 25 Sep 2008 03:14:28 +0000 Subject: [PATCH] add safe failure handling component, if we're building a safe app --- tos/lib/tosthreads/system/MainC.nc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tos/lib/tosthreads/system/MainC.nc b/tos/lib/tosthreads/system/MainC.nc index 64947ac4..710d281c 100644 --- a/tos/lib/tosthreads/system/MainC.nc +++ b/tos/lib/tosthreads/system/MainC.nc @@ -54,6 +54,10 @@ implementation { components TinyThreadSchedulerC; components StaticThreadC; +#ifdef SAFE_TINYOS + components SafeFailureHandlerC; +#endif + // Export the SoftwareInit and Boot for applications SoftwareInit = TinyOSMainP.SoftwareInit; Boot = TinyOSMainP; -- 2.39.2