mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-19 01:36:49 +00:00
Ensure that GPIO is correctly set after setup
This commit is contained in:
parent
cdc012743f
commit
cde3f80fca
@ -557,6 +557,14 @@ void AmsWebServer::handleSetup() {
|
||||
server.sendHeader("Location", String("/"), true);
|
||||
server.send (302, "text/plain", "");
|
||||
} else {
|
||||
config->setLedPin(0xFF);
|
||||
config->setLedPinRed(0xFF);
|
||||
config->setLedPinGreen(0xFF);
|
||||
config->setLedPinBlue(0xFF);
|
||||
config->setApPin(0xFF);
|
||||
config->setTempSensorPin(0xFF);
|
||||
config->setVccPin(0xFF);
|
||||
|
||||
config->setBoardType(server.arg("board").toInt());
|
||||
config->setVccMultiplier(1.0);
|
||||
config->setVccBootLimit(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user