Skip to content

Fix "c++ error: #if with no expression" errors for ESP32S3 #3760

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

electronicsguy
Copy link

Fix "c++ error: #if with no expression" errors

I many places in the file, the check for ESP32S3 is as follows:
#if CONFIG_IDF_TARGET_ESP32S3

which results in the error stated above if the label is simply defined in the User_Setup, but not assigned a value.

The correct syntax should be:
#if defined(LABEL)

Fix "c++ error: #if with no expression" errors

I many places in the file, the check for ESP32S3 is as follows:
```#if CONFIG_IDF_TARGET_ESP32S3```

which results in the error stated above if the label is simply defined in the User_Setup, but not assigned a value.

The correct syntax should be:
```#if defined(LABEL) ```
@electronicsguy electronicsguy changed the title Electronicsguy patch 1 Fix "c++ error: #if with no expression" errors for ESP32S3 Jun 16, 2025
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.

1 participant