mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 02:43:34 +08:00
VDev: fix code style
This commit is contained in:
@@ -246,13 +246,14 @@ extern "C" {
|
|||||||
const unsigned NAMELEN = 32;
|
const unsigned NAMELEN = 32;
|
||||||
char thread_name[NAMELEN] = {};
|
char thread_name[NAMELEN] = {};
|
||||||
|
|
||||||
#ifndef __PX4_QURT
|
#ifndef __PX4_QURT
|
||||||
int nret = pthread_getname_np(pthread_self(), thread_name, NAMELEN);
|
int nret = pthread_getname_np(pthread_self(), thread_name, NAMELEN);
|
||||||
|
|
||||||
if (nret || thread_name[0] == 0) {
|
if (nret || thread_name[0] == 0) {
|
||||||
PX4_WARN("failed getting thread name");
|
PX4_WARN("failed getting thread name");
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif
|
||||||
|
|
||||||
PX4_DEBUG("Called px4_poll timeout = %d", timeout);
|
PX4_DEBUG("Called px4_poll timeout = %d", timeout);
|
||||||
px4_sem_init(&sem, 0, 0);
|
px4_sem_init(&sem, 0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user