mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 19:53:34 +08:00
Makefile simplify colorecho for CI
This commit is contained in:
committed by
Lorenz Meier
parent
3eea8eb301
commit
30f8e5751d
@@ -138,10 +138,11 @@ define cmake-build
|
||||
+@(cd $(BUILD_DIR) && $(PX4_MAKE) $(PX4_MAKE_ARGS) $(ARGS))
|
||||
endef
|
||||
|
||||
COLOR_BLUE = \033[0;34m
|
||||
NO_COLOR = \033[m
|
||||
|
||||
define colorecho
|
||||
+@tput setaf 6
|
||||
+@echo $1
|
||||
+@tput sgr0
|
||||
+@echo "${COLOR_BLUE}${1} ${NO_COLOR}"
|
||||
endef
|
||||
|
||||
# Get a list of all config targets.
|
||||
|
||||
@@ -154,7 +154,7 @@ static int parse_options(int argc, char *argv[])
|
||||
}
|
||||
|
||||
@[if send_topics]@
|
||||
void* send(void*)
|
||||
void* send(void* /*unused*/)
|
||||
{
|
||||
char data_buffer[BUFFER_SIZE] = {};
|
||||
uint64_t sent = 0, total_sent = 0;
|
||||
|
||||
Reference in New Issue
Block a user