Skip to content

Commit 867abf1

Browse files
committed
Tune threads priorities
1 parent 37cb619 commit 867abf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Braccio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,15 @@ bool BraccioClass::begin(voidFuncPtr customMenu) {
133133
}
134134

135135
#ifdef __MBED__
136-
static rtos::Thread display_th;
136+
static rtos::Thread display_th(osPriorityBelowNormal);
137137
display_th.start(mbed::callback(this, &BraccioClass::display_thread));
138138
#endif
139139

140140
servos->begin();
141141
servos->setPositionMode(pmIMMEDIATE);
142142

143143
#ifdef __MBED__
144-
static rtos::Thread connected_th;
144+
static rtos::Thread connected_th(osPriorityLow);
145145
connected_th.start(mbed::callback(this, &BraccioClass::motors_connected_thread));
146146
#endif
147147

0 commit comments

Comments
 (0)