Skip to content

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