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

Add compilation error for missing battery #105

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

dalathegreat
Copy link
Owner

What

This PR adds a compiler error, incase the user forgets to define a battery. This makes the project easier for beginners.

Why

The USER_SETTINGS.h file is blank when a new user starts. If nothing is defined and you try to compile, the current compiler error doesn't really make sense:
bild

How

A compiler #error is used to guide the user to the correct place, so a battery can be defined
bild

@rjsc rjsc merged commit df07076 into main Nov 22, 2023
32 checks passed
@rjsc rjsc deleted the feature/compilewarning branch November 22, 2023 22:07
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