mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Set pin modes on load for GPIO protocols
This commit is contained in:
parent
4d49a048f4
commit
31dd12d90f
2 changed files with 4 additions and 0 deletions
|
|
@ -667,6 +667,10 @@ bool ShadeConfigFile::readShadeRecord(SomfyShade *shade) {
|
|||
shade->myPos = shade->currentPos = shade->target = 100.0f;
|
||||
}
|
||||
pref.end();
|
||||
if(shade->proto == radio_proto::GPIO) {
|
||||
pinMode(shade->gpioUp, OUTPUT);
|
||||
pinMode(shade->gpioDown, OUTPUT);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool ShadeConfigFile::loadFile(SomfyShadeController *s, const char *filename) {
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue