Only include mutex header if necessary (#991)

This commit is contained in:
bruelltuete 2022-09-06 17:00:51 +01:00 committed by GitHub
parent 07e5caf341
commit 189d377be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,13 +9,15 @@
#include <stdarg.h>
#include "pico.h"
#include "pico/mutex.h"
#if LIB_PICO_PRINTF_PICO
#include "pico/printf.h"
#endif
#include "pico/stdio.h"
#include "pico/stdio/driver.h"
#include "pico/time.h"
#if PICO_STDOUT_MUTEX
#include "pico/mutex.h"
#endif
#if LIB_PICO_STDIO_UART
#include "pico/stdio_uart.h"