Skip to content

Conversation

@jp-bennett
Copy link
Collaborator

The Arduino framework really wants this set, but then does nothing with it, that I can tell. Exploratory PR to drop it universally.

@thebentern thebentern requested a review from Copilot December 1, 2025 22:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Member

@fifieldt fifieldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

support cleanup

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 76 out of 76 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

-I variants/esp32/tbeam
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-ULED_BUILTIN
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using -ULED_BUILTIN here conflicts with the global definition -DLED_BUILTIN=-1 set in the main platformio.ini (line 58). This creates inconsistent behavior:

  • The global config defines LED_BUILTIN=-1
  • This variant config undefines it
  • The result is that LED_BUILTIN is undefined for this variant, which differs from other variants

Since the global definition already sets LED_BUILTIN=-1, consider removing the -ULED_BUILTIN flag. If there's a specific reason this variant needs LED_BUILTIN undefined (e.g., the Arduino core for this board defines it), document that reasoning or handle it consistently across all affected variants.

Suggested change
-ULED_BUILTIN

Copilot uses AI. Check for mistakes.

#define LED_PIN LED_BUILTIN

#define BATTERY_PIN 26
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of #define LED_PIN LED_BUILTIN leaves LED_PIN undefined for this variant. Other similar RP2040 variants define LED_PIN as PIN_LED (e.g., variants/rp2040/rak11310/variant.h, variants/rp2040/rpipico/variant.h). Consider adding #define LED_PIN PIN_LED to maintain consistency with other variants and ensure LED_PIN has a valid definition.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is probably legit feedback. Will look.

${esp32s3_base.build_flags}
-D HELTEC_V3
-I variants/esp32s3/heltec_v3
-ULED_BUILTIN
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using -ULED_BUILTIN here conflicts with the global definition -DLED_BUILTIN=-1 set in the main platformio.ini (line 58). This creates inconsistent behavior:

  • The global config defines LED_BUILTIN=-1
  • This variant config undefines it
  • The result is that LED_BUILTIN is undefined for this variant, which differs from other variants

Since the global definition already sets LED_BUILTIN=-1, consider removing the -ULED_BUILTIN flag. If there's a specific reason this variant needs LED_BUILTIN undefined (e.g., the Arduino core for this board defines it), document that reasoning or handle it consistently across all affected variants.

Suggested change
-ULED_BUILTIN

Copilot uses AI. Check for mistakes.
-I variants/esp32c6/tlora_c6
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
-ULED_BUILTIN
Copy link

Copilot AI Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using -ULED_BUILTIN here conflicts with the global definition -DLED_BUILTIN=-1 set in the main platformio.ini (line 58). This creates inconsistent behavior:

  • The global config defines LED_BUILTIN=-1
  • This variant config undefines it
  • The result is that LED_BUILTIN is undefined for this variant, which differs from other variants

Since the global definition already sets LED_BUILTIN=-1, consider removing the -ULED_BUILTIN flag. If there's a specific reason this variant needs LED_BUILTIN undefined (e.g., the Arduino core for this board defines it), document that reasoning or handle it consistently across all affected variants.

Suggested change
-ULED_BUILTIN

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Code cleanup or refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants