Improvements to Solenoid feature (#7369)
* Error out when Solenid pin is not defined Instead of defaulting to a (literally) random pin, error out instead. Because this pin may be used, or because that pin may not be exposed, or may not exist. * Remove 'SOLENOID_ACTIVE' setting since it's not used * Update documentation
This commit is contained in:
committed by
Florian Didron
parent
a0ebf160f2
commit
37b55e3693
@@ -29,12 +29,8 @@
|
|||||||
# define SOLENOID_MIN_DWELL 4
|
# define SOLENOID_MIN_DWELL 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SOLENOID_ACTIVE
|
|
||||||
# define SOLENOID_ACTIVE false
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SOLENOID_PIN
|
#ifndef SOLENOID_PIN
|
||||||
# define SOLENOID_PIN F6
|
# error SOLENOID_PIN not defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void solenoid_buzz_on(void);
|
void solenoid_buzz_on(void);
|
||||||
|
|||||||
Reference in New Issue
Block a user