mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 05:43:34 +08:00
RC input and PWM output for Navio2
This commit is contained in:
@@ -90,11 +90,15 @@ static void *entry_adapter(void *ptr)
|
||||
pthdata_t *data = (pthdata_t *) ptr;
|
||||
|
||||
int rv;
|
||||
|
||||
// set the threads name
|
||||
#ifdef __PX4_DARWIN
|
||||
rv = pthread_setname_np(data->name);
|
||||
#else
|
||||
rv = pthread_setname_np(pthread_self(), data->name);
|
||||
char buf[17];
|
||||
snprintf(buf, 16, "%s", data->name);
|
||||
buf[16] = '0';
|
||||
rv = pthread_setname_np(pthread_self(), buf);
|
||||
#endif
|
||||
|
||||
if (rv) {
|
||||
|
||||
Reference in New Issue
Block a user