-
Notifications
You must be signed in to change notification settings - Fork 639
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
.h splitting and reorg #780
Conversation
lobradov
commented
Apr 10, 2018
- Isolated dependencies
- Sensors dependencies in individual sensor files.
- enums, macros and prototypes.
Isolated dependencies sensors dependencies enums, macros and prototypes. I2C dependencies moved to actual sensor files. definitelly redefine
code/espurna/config/dependencies.h
Outdated
@@ -0,0 +1,76 @@ | |||
#ifndef DEPENDENCIES_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as sensors this should be pragma once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, changed.
It's a good approach, but I'm worried about the dependencies. For instance: modifying ADC_VCC_ENABLED is useless since this setting is used to set de ADC_MODE at the bottom of the sensors.h file... Maybe that call (ADC_MODE) should be in the analog sensor classes, same thing you did for I2C. |
I see what you mean. I can do it - give me a minute. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let's go! |
I had to change some stuff (main problem was with DEBUG_MSG definition order but got it working. Also changed the way the ADC_MODE setting is defined. I think it's a good step. Things look more rational now. |