aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorKat Perez <[email protected]>2025-05-08 10:58:59 -0400
committerKat Perez <[email protected]>2025-05-08 10:58:59 -0400
commit56b5e35c60743d65aacee753d1db391c3cbeae16 (patch)
tree648df94a4ef5417630ccbe5e0df1b6bc4e3260c1 /embassy-executor
parent8f18810ec61ce235a4c895413936e0216ed22c4f (diff)
change rtos-trace feature flag on tracing API to trace feature flag
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/src/spawner.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-executor/src/spawner.rs b/embassy-executor/src/spawner.rs
index 5e42f01bf..a0d246616 100644
--- a/embassy-executor/src/spawner.rs
+++ b/embassy-executor/src/spawner.rs
@@ -162,7 +162,7 @@ impl Spawner {
162 /// 162 ///
163 /// # Returns 163 /// # Returns
164 /// Result indicating whether the spawn was successful 164 /// Result indicating whether the spawn was successful
165 #[cfg(feature = "rtos-trace")] 165 #[cfg(feature = "trace")]
166 pub fn spawn_named<S>(&self, name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { 166 pub fn spawn_named<S>(&self, name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> {
167 let task = token.raw_task; 167 let task = token.raw_task;
168 mem::forget(token); 168 mem::forget(token);
@@ -182,7 +182,7 @@ impl Spawner {
182 182
183 /// When rtos-trace is disabled, spawn_named falls back to regular spawn. 183 /// When rtos-trace is disabled, spawn_named falls back to regular spawn.
184 /// This maintains API compatibility while optimizing out the name parameter. 184 /// This maintains API compatibility while optimizing out the name parameter.
185 #[cfg(not(feature = "rtos-trace"))] 185 #[cfg(not(feature = "trace"))]
186 pub fn spawn_named<S>(&self, _name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> { 186 pub fn spawn_named<S>(&self, _name: &'static str, token: SpawnToken<S>) -> Result<(), SpawnError> {
187 self.spawn(token) 187 self.spawn(token)
188 } 188 }