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

Minor cleanup of config flags. #363

Merged
merged 1 commit into from
Aug 30, 2023
Merged

Minor cleanup of config flags. #363

merged 1 commit into from
Aug 30, 2023

Conversation

microbit-carlos
Copy link
Collaborator

@microbit-carlos microbit-carlos commented Aug 8, 2023

Changing #if xxx == 1 to #if CONFIG_ENABLED(xxx), and moving a couple of flags to MicroBitConfig.h

Changing #if xxx == 1 to CONFIG_ENABLED, and moving a couple of
flags to MicroBitConfig.h
Comment on lines +299 to +301
#ifndef MICROBIT_TRIPLE_RESET_TO_PAIR
#define MICROBIT_TRIPLE_RESET_TO_PAIR 1
#endif
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Renamed this from DEVICE_TRIPLE_RESET_TO_PAIR to MICROBIT_TRIPLE_RESET_TO_PAIR to follow the current pattern.
Did a GitHub search and there is no usage of this flag outside of this repo (and its forks).

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Build diff

Base commit: 4f2aedcd8e093e7ca9eefd574d4a647884e82505
Action run: https://github.com/lancaster-university/codal-microbit-v2/actions/runs/5800262707

     VM SIZE    
 -------------- 
  [ = ]       0    TOTAL

Comment on lines -98 to -100
// Flag that we have integrate face-touch as a feature
#define MICROBIT_UBIT_FACE_TOUCH_BUTTON 1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed as it is not used anywhere

@JohnVidler JohnVidler merged commit 5967ea2 into master Aug 30, 2023
28 checks passed
@JohnVidler JohnVidler deleted the flags-cleanup branch August 30, 2023 12:25
@microbit-carlos microbit-carlos added this to the v0.2.60 milestone Sep 4, 2023
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