diff options
Diffstat (limited to 'src/lib/ch.cpp')
-rw-r--r-- | src/lib/ch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ch.cpp b/src/lib/ch.cpp index 170a143a7..1d63cefd5 100644 --- a/src/lib/ch.cpp +++ b/src/lib/ch.cpp @@ -74,9 +74,9 @@ namespace chibios_rt { return ((BaseThread *)arg)->Main();
}
- BaseThread::BaseThread(tprio_t prio, tmode_t mode, void *workspace, size_t wsize) {
+ BaseThread::BaseThread(void *workspace, size_t wsize, tprio_t prio) {
- thread_ref = chThdCreate(prio, mode, workspace, wsize, thdstart, this);
+ thread_ref = chThdCreateStatic(workspace, wsize, prio, thdstart, this);
}
void BaseThread::Exit(msg_t msg) {
|