Skip to content

Commit 276be00

Browse files
committed
[fiber] Clear scheduler options after a run
Prevents double watermarking the same stack when adding before running
1 parent 26ed771 commit 276be00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modm/processing/fiber/scheduler.hpp.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ protected:
178178
const auto overflow = (Task *) modm_context_start(&current->ctx);
179179
modm_assert(not overflow, "fbr.stkof", "Fiber stack overflow", overflow);
180180
%% endif
181+
this->options = Options(0);
181182
return true;
182183
}
183184
/// @endcond

0 commit comments

Comments
 (0)