Reinitialize current mode after changing the range parameters so they are immediately reflected

Marking this the 1.0 release
This commit is contained in:
Mark van Renswoude 2017-05-20 10:29:55 +02:00
parent 65e34bfdd1
commit aadb3d68ca
1 changed files with 2 additions and 0 deletions

View File

@ -204,6 +204,8 @@ void handleSetRange(uint8_t* packet)
udpServer.write(Command::SetRange);
stairs->getRange(&udpServer);
currentMode->init(stairs, currentTime);
}