Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C3 support? #12

Open
acruise opened this issue Jan 11, 2024 · 1 comment
Open

ESP32-C3 support? #12

acruise opened this issue Jan 11, 2024 · 1 comment

Comments

@acruise
Copy link

acruise commented Jan 11, 2024

Hi there, I was idly trying to use ESP32Console on an ESP32-C3 board, which is RiscV rather than xtensa, so the XTSTR macro isn't available... How hard would it be to use a fallback? :)

@jbtronics
Copy link
Owner

The XTSTR macro is only used in the system info command:

printf("Arduino Core version: %s (%x)\n", XTSTR(ARDUINO_ESP32_GIT_DESC), ARDUINO_ESP32_GIT_VER);

You could just simply comment this line out, and it should work.

But the macro is also pretty simple, as it just returns the value of the define constant as a string. You should be able to emulate it with something like this:

#define __STR(x) #x
#define XTSTR(x) __STR(x)

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

No branches or pull requests

2 participants