forked from Archive/PX4-Autopilot
log_message increase queue depth 2->4
This commit is contained in:
parent
d42e57a066
commit
c6af260a41
|
@ -4,3 +4,5 @@ uint64 timestamp # time since system start (microseconds)
|
|||
|
||||
uint8 severity # log level (same as in the linux kernel, starting with 0)
|
||||
char[127] text
|
||||
|
||||
uint8 ORB_QUEUE_LENGTH = 4
|
||||
|
|
|
@ -66,7 +66,7 @@ void px4_log_initialize(void)
|
|||
log_message.severity = 6; //info
|
||||
strcpy((char *)log_message.text, "initialized uORB logging");
|
||||
|
||||
orb_log_message_pub = orb_advertise_queue(ORB_ID(log_message), &log_message, 2);
|
||||
orb_log_message_pub = orb_advertise_queue(ORB_ID(log_message), &log_message, log_message_s::ORB_QUEUE_LENGTH);
|
||||
|
||||
if (!orb_log_message_pub) {
|
||||
PX4_ERR("failed to advertise log_message");
|
||||
|
|
Loading…
Reference in New Issue