Set pin modes on load for GPIO protocols

This commit is contained in:
Robert Strouse 2023-10-05 17:28:20 -07:00
parent 4d49a048f4
commit 31dd12d90f
2 changed files with 4 additions and 0 deletions

View file

@ -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.