mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix bl_update: move definition of print_usage into the ifdef
fixes the compile error: error: 'print_usage' defined but not used [-Werror=unused-function]
This commit is contained in:
parent
a4ca3fc607
commit
05c3b711f3
@ -59,6 +59,9 @@
|
||||
|
||||
__EXPORT int bl_update_main(int argc, char *argv[]);
|
||||
|
||||
#if defined (CONFIG_STM32_STM32F40XX)
|
||||
static int setopt(void);
|
||||
|
||||
static void print_usage(const char *reason)
|
||||
{
|
||||
if (reason) {
|
||||
@ -73,8 +76,6 @@ static void print_usage(const char *reason)
|
||||
PRINT_MODULE_USAGE_COMMAND_DESCR("<file>", "Bootloader bin file");
|
||||
}
|
||||
|
||||
#if defined (CONFIG_STM32_STM32F40XX)
|
||||
static int setopt(void);
|
||||
#endif
|
||||
|
||||
int
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user