Skip to content

Avoiding crashing while building without console.#729

Open
igparaul wants to merge 1 commit intobluekitchen:masterfrom
igparaul:patch-1
Open

Avoiding crashing while building without console.#729
igparaul wants to merge 1 commit intobluekitchen:masterfrom
igparaul:patch-1

Conversation

@igparaul
Copy link
Copy Markdown

No description provided.

@mringwal
Copy link
Copy Markdown
Member

Hi @igparaul

How do you build without console? resp. what changes dit you make?
Did you (also) disable HAVE_BTSTACK_STDIN?

@igparaul
Copy link
Copy Markdown
Author

Hello @mringwal

As I'm using the ESP32 as a secondary MCU, controlled by another one via UART, I do not want to print anything; thus, I am disabling UART_CONSOLE in sdkconfig.

When I do this, the file "btstack_stdio_esp32.c" produces an error while building since the btstack_stdio_process function is defined at the top of the file but not declared in the section of no console configuration. I have simply dummy-declared with an UNUSED(context) to avoid errors and warnings.

I've also tried to disable HAVE_BTSTACK_STDIN, but it does not change anything; it fails either while building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants